Skip to content

Commit

Permalink
Chore: reactivate synchronization on configurationSection
Browse files Browse the repository at this point in the history
  • Loading branch information
idillon-sfl committed Feb 6, 2024
1 parent 0b88382 commit a0c2434
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions client/src/language/languageClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ export async function activateLanguageServer (context: ExtensionContext): Promis
})
})

const sendSettings = async (): Promise<void> => {
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
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit a0c2434

Please sign in to comment.