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