Skip to content

Commit

Permalink
refresh workspace tree on (re)generation
Browse files Browse the repository at this point in the history
  • Loading branch information
thewahome committed Dec 5, 2024
1 parent 457f3cd commit 488bea4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ export class GenerateClientCommand extends Command {
if (!vscode.workspace.workspaceFolders || vscode.workspace.workspaceFolders.length === 0) {
await vscode.commands.executeCommand('vscode.openFolder', vscode.Uri.file(config.workingDirectory ?? getWorkspaceJsonDirectory()), true);
} else {
await vscode.commands.executeCommand('kiota.workspace.refresh');
await displayGenerationResults(this._openApiTreeProvider, config);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export class RegenerateButtonCommand extends Command {
await regenerateService.regenerateTeamsApp(workspaceJson, clientOrPluginKey);
}
}
await vscode.commands.executeCommand('kiota.workspace.refresh');
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,6 @@ export class RegenerateCommand extends Command {
await regenerateService.regenerateTeamsApp(workspaceJson, clientOrPluginKey);
}
}
await vscode.commands.executeCommand('kiota.workspace.refresh');
}
}

0 comments on commit 488bea4

Please sign in to comment.