From a0c2434ec3b9a55ab651224e10c5bb74f6630cba Mon Sep 17 00:00:00 2001 From: idillon Date: Tue, 16 Jan 2024 20:45:18 -0500 Subject: [PATCH] Chore: reactivate synchronization on configurationSection --- client/src/language/languageClient.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/src/language/languageClient.ts b/client/src/language/languageClient.ts index 882a7961..b769f7b0 100644 --- a/client/src/language/languageClient.ts +++ b/client/src/language/languageClient.ts @@ -55,6 +55,13 @@ export async function activateLanguageServer (context: ExtensionContext): Promis }) }) + const sendSettings = async (): Promise => { + const settings = workspace.getConfiguration() + await client.sendNotification('workspace/didChangeConfiguration', { settings }) + } + + workspace.onDidChangeConfiguration(sendSettings) + // Options to control the language client const clientOptions: LanguageClientOptions = { // Register the server for bitbake documents @@ -142,6 +149,7 @@ export async function activateLanguageServer (context: ExtensionContext): Promis // Start the client and launch the server await client.start() + await sendSettings() return client }