Enable Dart server-based completion in pubspec.yaml and fix_data.yaml files
authorJaime Wren <jwren@google.com>
Thu, 24 Sep 2020 08:04:05 +0000 (11:04 +0300)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Thu, 24 Sep 2020 08:18:25 +0000 (08:18 +0000)
close #781

GitOrigin-RevId: c348a2b3e0c24ffc588617050e30cee80b386722

Dart/src/com/jetbrains/lang/dart/ide/completion/DartServerCompletionContributor.java

index c7a107d19395df878601a67da402437952ac825b..8042c6a9e14bf63df6f3d6ecbb44fa4bf6998829 100644 (file)
@@ -63,7 +63,10 @@ public class DartServerCompletionContributor extends CompletionContributor {
            or(psiElement().withLanguage(DartLanguage.INSTANCE),
               psiElement().inFile(psiFile().withLanguage(HTMLLanguage.INSTANCE)),
               psiElement().inFile(psiFile().withName(".analysis_options")),
-              psiElement().inFile(psiFile().withName("analysis_options.yaml"))
+              psiElement().inFile(psiFile().withName("analysis_options.yaml")),
+              psiElement().inFile(psiFile().withName("pubspec.yaml")),
+              // TODO(jwren) Update this file name here with the final name chosen.
+              psiElement().inFile(psiFile().withName("fix_data.yaml"))
            ),
            new CompletionProvider<CompletionParameters>() {
              @Override