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

gcp-cherry-pick-bot[bot] and Marshall Bowers created

Cherry-picked 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.

Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>

Change summary

crates/extension/src/wasm_host/wit/since_v0_0_6.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

crates/extension/src/wasm_host/wit/since_v0_0_6.rs 🔗

@@ -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))
                             })