summaryrefslogtreecommitdiff
path: root/cli/lsp/language_server.rs
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2023-08-31 19:10:09 +0100
committerGitHub <noreply@github.com>2023-08-31 19:10:09 +0100
commitc0dcf6a3571ee04b4826c52d1329804e7c2b02c4 (patch)
tree763e320547c5f6e978e25acee1f1f098cda7f24f /cli/lsp/language_server.rs
parent9d58c896dc11be39727729b74ebe5d5d7bb58767 (diff)
feat(lsp): enable via config file detection (#20334)
With https://github.com/denoland/vscode_deno/pull/902 for https://github.com/denoland/vscode_deno/issues/880. For multi-folder workspaces, note that this only scans the first one and applies the result to all. That means users would have to still have to specify `"deno.enable": true/false` for their secondary folders if the preference is different for those.
Diffstat (limited to 'cli/lsp/language_server.rs')
-rw-r--r--cli/lsp/language_server.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/lsp/language_server.rs b/cli/lsp/language_server.rs
index d3c7ea492..dc85eb1cc 100644
--- a/cli/lsp/language_server.rs
+++ b/cli/lsp/language_server.rs
@@ -3053,7 +3053,7 @@ impl tower_lsp::LanguageServer for LanguageServer {
let options = DidChangeWatchedFilesRegistrationOptions {
watchers: vec![FileSystemWatcher {
glob_pattern: "**/*.{json,jsonc,lock}".to_string(),
- kind: Some(WatchKind::Change),
+ kind: None,
}],
};
registrations.push(Registration {