diff --git a/client/src/language/languageClient.ts b/client/src/language/languageClient.ts index e510f785..81fec6da 100644 --- a/client/src/language/languageClient.ts +++ b/client/src/language/languageClient.ts @@ -95,7 +95,12 @@ export async function activateLanguageServer (context: ExtensionContext): Promis }) client.onRequest('bitbake/parseAllRecipes', async () => { - return await commands.executeCommand('bitbake.parse-recipes') + // Temporarily disable task.saveBeforeRun + // This request happens on bitbake document save. We don't want to save all files when any bitbake file is saved. + const saveBeforeRun = await workspace.getConfiguration('task').get('saveBeforeRun') + await workspace.getConfiguration('task').update('saveBeforeRun', 'never', undefined, true) + await commands.executeCommand('bitbake.parse-recipes') + await workspace.getConfiguration('task').update('saveBeforeRun', saveBeforeRun, undefined, true) }) client.onRequest('bitbake/rescanProject', async () => {