From 71722c047f96cb754c958c52591ca53f2a9c4d3c Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 26 Aug 2018 12:51:45 +0300 Subject: Simple scope completion --- crates/server/src/caps.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'crates/server/src/caps.rs') diff --git a/crates/server/src/caps.rs b/crates/server/src/caps.rs index ffebd9b47..98499bb05 100644 --- a/crates/server/src/caps.rs +++ b/crates/server/src/caps.rs @@ -4,6 +4,7 @@ use languageserver_types::{ TextDocumentSyncOptions, TextDocumentSyncKind, ExecuteCommandOptions, + CompletionOptions, }; pub fn server_capabilities() -> ServerCapabilities { @@ -18,7 +19,10 @@ pub fn server_capabilities() -> ServerCapabilities { } )), hover_provider: None, - completion_provider: None, + completion_provider: Some(CompletionOptions { + resolve_provider: None, + trigger_characters: None, + }), signature_help_provider: None, definition_provider: Some(true), type_definition_provider: None, -- cgit v1.2.3