diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2024-01-28 21:56:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-28 21:56:45 +0000 |
commit | aed5e4997df26c99a186fb9a5b18da3bbc594ed3 (patch) | |
tree | 7f300dd6d4189f86b052a2a47cc18714c6e7157c /cli/lsp/language_server.rs | |
parent | 7281775381cda79ef61df27820387dc2c74e0384 (diff) |
chore(lsp): rename client-side command invocations (#22140)
Diffstat (limited to 'cli/lsp/language_server.rs')
-rw-r--r-- | cli/lsp/language_server.rs | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/cli/lsp/language_server.rs b/cli/lsp/language_server.rs index f55610b1c..31bd5ba8f 100644 --- a/cli/lsp/language_server.rs +++ b/cli/lsp/language_server.rs @@ -1216,24 +1216,7 @@ impl Inner { parent_process_checker::start(parent_pid) } - // TODO(nayeemrmn): This flag exists to avoid breaking the extension for the - // 1.37.0 release. Eventually make this always true. - // See https://github.com/denoland/deno/pull/20111#issuecomment-1705776794. - let mut enable_builtin_commands = false; - if let Some(value) = ¶ms.initialization_options { - if let Some(object) = value.as_object() { - if let Some(value) = object.get("enableBuiltinCommands") { - if value.as_bool() == Some(true) { - enable_builtin_commands = true; - } - } - } - } - - let capabilities = capabilities::server_capabilities( - ¶ms.capabilities, - enable_builtin_commands, - ); + let capabilities = capabilities::server_capabilities(¶ms.capabilities); let version = format!( "{} ({}, {})", |