Skip to content

Commit

Permalink
Fix completion
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron-martin committed Feb 20, 2024
1 parent 40109d4 commit 9bf49c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions starlark_lsp/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ use lsp_types::request::GotoDefinition;
use lsp_types::request::HoverRequest;
use lsp_types::CompletionItem;
use lsp_types::CompletionItemKind;
use lsp_types::CompletionOptions;
use lsp_types::CompletionParams;
use lsp_types::CompletionResponse;
use lsp_types::DefinitionOptions;
Expand Down Expand Up @@ -405,6 +406,7 @@ impl<T: LspContext> Backend<T> {
ServerCapabilities {
text_document_sync: Some(TextDocumentSyncCapability::Kind(TextDocumentSyncKind::FULL)),
definition_provider,
completion_provider: Some(CompletionOptions::default()),
hover_provider: Some(HoverProviderCapability::Simple(true)),
..ServerCapabilities::default()
}
Expand Down

0 comments on commit 9bf49c2

Please sign in to comment.