fix: wrong completion kind (#127)

* fix: wrong completion kind

* dev: add completion requests back to e2e testing
This commit is contained in:
Myriad-Dreamin 2024-03-30 17:14:50 +08:00 committed by GitHub
parent 2c13d7efdd
commit 21a872bbe8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 21 additions and 18 deletions

View file

@ -257,8 +257,8 @@ pub mod typst_to_lsp {
TypstCompletionKind::Syntax => LspCompletionKind::SNIPPET,
TypstCompletionKind::Func => LspCompletionKind::FUNCTION,
TypstCompletionKind::Param => LspCompletionKind::VARIABLE,
TypstCompletionKind::Constant => LspCompletionKind::FIELD,
TypstCompletionKind::Symbol(_) => LspCompletionKind::TEXT,
TypstCompletionKind::Constant => LspCompletionKind::CONSTANT,
TypstCompletionKind::Symbol(_) => LspCompletionKind::FIELD,
TypstCompletionKind::Type => LspCompletionKind::CLASS,
}
}