diff --git a/client/src/extension.ts b/client/src/extension.ts index b2adacd2..709f41d7 100644 --- a/client/src/extension.ts +++ b/client/src/extension.ts @@ -69,6 +69,7 @@ export async function activate (context: vscode.ExtensionContext): Promise if (event.affectsConfiguration('bitbake')) { bitbakeDriver.loadSettings(vscode.workspace.getConfiguration('bitbake'), vscode.workspace.workspaceFolders?.[0].uri.fsPath) logger.debug('Bitbake settings changed') + void vscode.commands.executeCommand('bitbake.rescan-project') } if (event.affectsConfiguration('bitbake.loggingLevel')) { loadLoggerSettings() diff --git a/server/src/server.ts b/server/src/server.ts index f90295aa..55728dbd 100644 --- a/server/src/server.ts +++ b/server/src/server.ts @@ -91,7 +91,6 @@ connection.onShutdown(() => { // eslint-disable-next-line @typescript-eslint/no-misused-promises connection.onDidChangeConfiguration(async (change) => { logger.level = change.settings.bitbake.loggingLevel - void connection.sendRequest('bitbake/rescanProject') parseOnSave = change.settings.bitbake.parseOnSave })