Disable getting variants from kotlin references
This commit is contained in:
@@ -210,8 +210,7 @@
|
||||
|
||||
<lookup.charFilter implementation="org.jetbrains.jet.plugin.completion.JetCompletionCharFilter"/>
|
||||
|
||||
<psi.referenceContributor language="jet" order="after JetCompletionContributor"
|
||||
implementation="org.jetbrains.jet.plugin.references.JetReferenceContributor"/>
|
||||
<psi.referenceContributor language="jet" implementation="org.jetbrains.jet.plugin.references.JetReferenceContributor"/>
|
||||
|
||||
<renamePsiElementProcessor id="KotlinClass"
|
||||
implementation="org.jetbrains.jet.plugin.refactoring.rename.RenameJetClassProcessor"
|
||||
|
||||
@@ -71,9 +71,6 @@ public class JetCompletionContributor extends CompletionContributor {
|
||||
else {
|
||||
session.completeSmart();
|
||||
}
|
||||
|
||||
// Prevent from adding reference variants from standard reference contributor
|
||||
result.stopHere();
|
||||
}
|
||||
catch (ProcessCanceledException e) {
|
||||
throw CompletionProgressIndicatorUtil.rethrowWithCancelIndicator(e);
|
||||
|
||||
@@ -53,17 +53,6 @@ public class JetSimpleNameReference extends JetPsiReference {
|
||||
return new TextRange(0, getElement().getTextLength());
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public Object[] getVariants() {
|
||||
CancelableResolveSession resolveSession =
|
||||
AnalyzerFacadeWithCache.getLazyResolveSessionForFile((JetFile) getExpression().getContainingFile());
|
||||
BindingContext bindingContext = resolveSession.resolveToElement(getExpression());
|
||||
|
||||
return DescriptorLookupConverter.collectLookupElements(
|
||||
resolveSession, bindingContext, TipsManager.getReferenceVariants(myExpression, bindingContext));
|
||||
}
|
||||
|
||||
@Override
|
||||
public PsiElement handleElementRename(String newElementName) throws IncorrectOperationException {
|
||||
IElementType type = myExpression.getReferencedNameElementType();
|
||||
|
||||
Reference in New Issue
Block a user