mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 05:15:00 +00:00
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:
parent
1be452744a
commit
b964fe2ccf
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue