Skip to content

Commit

Permalink
Refresh list of root dirs when selecting a new one
Browse files Browse the repository at this point in the history
New workspace could have been added, for example.
  • Loading branch information
xclaesse authored and tristan957 committed Nov 28, 2023
1 parent e1f3a37 commit be11d43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export async function activate(ctx: vscode.ExtensionContext) {

ctx.subscriptions.push(
vscode.commands.registerCommand("mesonbuild.selectRootDir", async () => {
let newRootDir = await selectRootDir(rootDirs);
let newRootDir = await selectRootDir(await mesonRootDirs());
if (newRootDir && newRootDir != rootDir) {
await workspaceState.update("mesonbuild.sourceDir", newRootDir);
vscode.commands.executeCommand("workbench.action.reloadWindow");
Expand Down

0 comments on commit be11d43

Please sign in to comment.