feat(lsp): add completions for type system keywords

Added top-level keyword completions for:
- concept: with semicolon-terminated snippet
- sub_concept: with dot notation snippet
- concept_comparison: with brace-delimited snippet

Added test verifying type system keywords appear in
completions with correct snippet formatting.
This commit is contained in:
2026-02-14 14:32:51 +00:00
parent de95332fe1
commit b3110c8b0f
2 changed files with 54 additions and 0 deletions

View File

@@ -683,6 +683,9 @@ fn top_level_keyword_completions() -> Vec<CompletionItem> {
keyword_item("location", "Define a location", "location ${1:Name} {\n $0\n}"),
keyword_item("species", "Define a species", "species ${1:Name} {\n $0\n}"),
keyword_item("use", "Import declarations", "use ${1:path::to::item};"),
keyword_item("concept", "Define an algebraic data type", "concept ${1:Name};"),
keyword_item("sub_concept", "Define a sub-type", "sub_concept ${1:Parent}.${2:Name} {\n $0\n}"),
keyword_item("concept_comparison", "Pattern match on concepts", "concept_comparison ${1:Name} {\n $0\n}"),
]
}