mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
fix(editor): Fix onConfigChange to send the correct config for didChangeConfiguration notification (#6962)
This currently fails because it sends over data that the language server isn't prepared to deserialize. This updates to send over the correct `LanguageServerConfig` type. --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
83d1f69f75
commit
ebf37539c0
1 changed files with 1 additions and 1 deletions
|
|
@ -175,7 +175,7 @@ export async function activate(context: ExtensionContext) {
|
|||
});
|
||||
|
||||
config.onConfigChange = function onConfigChange() {
|
||||
let settings: any = JSON.parse(JSON.stringify(this));
|
||||
let settings = this.toLanguageServerConfig();
|
||||
updateStatsBar(settings.enable);
|
||||
client.sendNotification('workspace/didChangeConfiguration', { settings });
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue