Show configuration in language server debug logs (#23084)
Release Notes: - Added configuration sent on initialization to the `Server Info` section of the language server logs.
This commit is contained in:
parent
d4e91c1898
commit
7c2c409f6d
7 changed files with 59 additions and 9 deletions
|
@ -282,8 +282,15 @@ impl Prettier {
|
|||
cx.clone(),
|
||||
)
|
||||
.context("prettier server creation")?;
|
||||
|
||||
let initialize_params = None;
|
||||
let configuration = lsp::DidChangeConfigurationParams {
|
||||
settings: Default::default(),
|
||||
};
|
||||
let server = cx
|
||||
.update(|cx| executor.spawn(server.initialize(None, cx)))?
|
||||
.update(|cx| {
|
||||
executor.spawn(server.initialize(initialize_params, configuration.into(), cx))
|
||||
})?
|
||||
.await
|
||||
.context("prettier server initialization")?;
|
||||
Ok(Self::Real(RealPrettier {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue