mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
fix(oxc_language_server): use config path at init (#2569)
`config_path` was not use in initialization. Must merge #2568 before to fix vscode. Co-authored-by: Clément Lafont <johnrazeur@MacBook-Pro-de-Clement.local>
This commit is contained in:
parent
670081050f
commit
2263377e3f
1 changed files with 1 additions and 1 deletions
|
|
@ -89,7 +89,6 @@ impl LanguageServer for Backend {
|
|||
async fn initialize(&self, params: InitializeParams) -> Result<InitializeResult> {
|
||||
self.init(params.root_uri)?;
|
||||
self.init_ignore_glob().await;
|
||||
self.init_linter_config().await;
|
||||
let options = params.initialization_options.and_then(|mut value| {
|
||||
let settings = value.get_mut("settings")?.take();
|
||||
serde_json::from_value::<Options>(settings).ok()
|
||||
|
|
@ -100,6 +99,7 @@ impl LanguageServer for Backend {
|
|||
info!("language server version: {:?}", env!("CARGO_PKG_VERSION"));
|
||||
*self.options.lock().await = value;
|
||||
}
|
||||
self.init_linter_config().await;
|
||||
Ok(InitializeResult {
|
||||
server_info: Some(ServerInfo { name: "oxc".into(), version: None }),
|
||||
offset_encoding: None,
|
||||
|
|
|
|||
Loading…
Reference in a new issue