[simple language] SimpleCompletionContributor: cleanup

This commit is contained in:
Yann Cébron 2020-07-15 17:39:33 +02:00
parent bba727c859
commit 1ee945229c

View File

@ -10,9 +10,9 @@ import org.intellij.sdk.language.psi.SimpleTypes;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
public class SimpleCompletionContributor extends CompletionContributor { public class SimpleCompletionContributor extends CompletionContributor {
public SimpleCompletionContributor() { public SimpleCompletionContributor() {
extend( CompletionType.BASIC, extend(CompletionType.BASIC, PlatformPatterns.psiElement(SimpleTypes.VALUE),
PlatformPatterns.psiElement(SimpleTypes.VALUE).withLanguage(SimpleLanguage.INSTANCE),
new CompletionProvider<CompletionParameters>() { new CompletionProvider<CompletionParameters>() {
public void addCompletions(@NotNull CompletionParameters parameters, public void addCompletions(@NotNull CompletionParameters parameters,
@NotNull ProcessingContext context, @NotNull ProcessingContext context,