diff options
Diffstat (limited to 'cli/lsp/language_server.rs')
-rw-r--r-- | cli/lsp/language_server.rs | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/cli/lsp/language_server.rs b/cli/lsp/language_server.rs index c72239aa7..ad0da1c57 100644 --- a/cli/lsp/language_server.rs +++ b/cli/lsp/language_server.rs @@ -381,13 +381,6 @@ impl LanguageServer { } } - pub async fn inlay_hint( - &self, - params: InlayHintParams, - ) -> LspResult<Option<Vec<InlayHint>>> { - self.0.read().await.inlay_hint(params).await - } - pub async fn virtual_text_document( &self, params: Option<Value>, @@ -3156,7 +3149,9 @@ impl tower_lsp::LanguageServer for LanguageServer { // are interested in. let options = DidChangeWatchedFilesRegistrationOptions { watchers: vec![FileSystemWatcher { - glob_pattern: "**/*.{json,jsonc,lock}".to_string(), + glob_pattern: GlobPattern::String( + "**/*.{json,jsonc,lock}".to_string(), + ), kind: None, }], }; @@ -3417,6 +3412,13 @@ impl tower_lsp::LanguageServer for LanguageServer { self.0.read().await.hover(params).await } + async fn inlay_hint( + &self, + params: InlayHintParams, + ) -> LspResult<Option<Vec<InlayHint>>> { + self.0.read().await.inlay_hint(params).await + } + async fn code_action( &self, params: CodeActionParams, |