mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 02:07:50 +08:00
[simple language] SimpleCompletionContributor: cleanup
This commit is contained in:
parent
bba727c859
commit
1ee945229c
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user