Retrieve workspace configuration before initializing language server
This commit is contained in:
parent
f5a4c6a7c1
commit
9498f02f2c
1 changed files with 2 additions and 2 deletions
|
@ -1958,6 +1958,8 @@ impl Project {
|
||||||
self.language_servers.insert(
|
self.language_servers.insert(
|
||||||
server_id,
|
server_id,
|
||||||
LanguageServerState::Starting(cx.spawn_weak(|this, mut cx| async move {
|
LanguageServerState::Starting(cx.spawn_weak(|this, mut cx| async move {
|
||||||
|
let workspace_config =
|
||||||
|
cx.update(|cx| languages.workspace_configuration(cx)).await;
|
||||||
let language_server = language_server?.await.log_err()?;
|
let language_server = language_server?.await.log_err()?;
|
||||||
let language_server = language_server
|
let language_server = language_server
|
||||||
.initialize(initialization_options)
|
.initialize(initialization_options)
|
||||||
|
@ -2088,8 +2090,6 @@ impl Project {
|
||||||
})
|
})
|
||||||
.detach();
|
.detach();
|
||||||
|
|
||||||
let workspace_config =
|
|
||||||
cx.update(|cx| languages.workspace_configuration(cx)).await;
|
|
||||||
language_server
|
language_server
|
||||||
.notify::<lsp::notification::DidChangeConfiguration>(
|
.notify::<lsp::notification::DidChangeConfiguration>(
|
||||||
lsp::DidChangeConfigurationParams {
|
lsp::DidChangeConfigurationParams {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue