From 063092ba00ee24077792dd34e718fb41920dc418 Mon Sep 17 00:00:00 2001 From: Tomasz Godzik Date: Tue, 27 Aug 2024 13:02:43 +0200 Subject: [PATCH] feature: Add opaque type completions --- mtags-shared/src/main/scala/scala/meta/internal/pc/Keyword.scala | 1 + tests/cross/src/test/scala/tests/pc/CompletionKeywordSuite.scala | 1 + 2 files changed, 2 insertions(+) diff --git a/mtags-shared/src/main/scala/scala/meta/internal/pc/Keyword.scala b/mtags-shared/src/main/scala/scala/meta/internal/pc/Keyword.scala index 69a89606301..95f003c1940 100644 --- a/mtags-shared/src/main/scala/scala/meta/internal/pc/Keyword.scala +++ b/mtags-shared/src/main/scala/scala/meta/internal/pc/Keyword.scala @@ -104,6 +104,7 @@ object Keyword { canBeExtended = false ), Keyword("type", isTemplate = true, isDefinition = true), + Keyword("opaque type", isTemplate = true, isDefinition = true, isScala3 = true), Keyword("class", isTemplate = true, isPackage = true, isDefinition = true), Keyword("enum", isTemplate = true, isPackage = true, isDefinition = true, isScala3 = true), Keyword("case class", isTemplate = true, isPackage = true, isDefinition = true), diff --git a/tests/cross/src/test/scala/tests/pc/CompletionKeywordSuite.scala b/tests/cross/src/test/scala/tests/pc/CompletionKeywordSuite.scala index a7ff1f1be87..27db075245d 100644 --- a/tests/cross/src/test/scala/tests/pc/CompletionKeywordSuite.scala +++ b/tests/cross/src/test/scala/tests/pc/CompletionKeywordSuite.scala @@ -521,6 +521,7 @@ class CompletionKeywordSuite extends BaseCompletionSuite { |given |extension |type + |opaque type |class |enum |case class