Skip to content

Commit

Permalink
Feat: update python paths on workspace change
Browse files Browse the repository at this point in the history
  • Loading branch information
Arctize authored and deribaucourt committed Dec 7, 2023
1 parent 169bac7 commit 36b33cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export async function activate (context: vscode.ExtensionContext): Promise<void>
if (event.affectsConfiguration('bitbake')) {
bitbakeDriver.loadSettings(vscode.workspace.getConfiguration('bitbake'), vscode.workspace.workspaceFolders?.[0].uri.fsPath)
logger.debug('Bitbake settings changed')
updatePythonPath()
void vscode.commands.executeCommand('bitbake.rescan-project')
}
if (event.affectsConfiguration('bitbake.loggingLevel')) {
Expand All @@ -88,6 +89,7 @@ export async function activate (context: vscode.ExtensionContext): Promise<void>
logger.debug('Bitbake workspace changed: ' + JSON.stringify(event))
loadLoggerSettings()
bitbakeDriver.loadSettings(vscode.workspace.getConfiguration('bitbake'), vscode.workspace.workspaceFolders?.[0].uri.fsPath)
updatePythonPath()
bitbakeWorkspace.loadBitbakeWorkspace(context.workspaceState)
}))

Expand Down

0 comments on commit 36b33cf

Please sign in to comment.