Fix reading workspace-level LSP settings in extensions (#10859)

This PR fixes an issue where workspace-level LSP settings could be not
read using `LspSettings::for_worktree` in extensions.

We we erroneously always reading the global settings instead of
respecting the passed-in location.

Release Notes:

- Fixed a bug where workspace LSP settings could not be read by
extensions.
This commit is contained in:
Marshall Bowers
2024-04-22 14:40:23 -04:00
committed by GitHub
parent 1be452744a
commit b964fe2ccf
@@ -227,7 +227,7 @@ impl ExtensionImports for WasmState {
"lsp" => {
let settings = key
.and_then(|key| {
ProjectSettings::get_global(cx)
ProjectSettings::get(location, cx)
.lsp
.get(&Arc::<str>::from(key))
})