Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Wait for fileOpenHandler to finish, before refreshing the trace explorer
context.

Signed-off-by: Greg Savin <[email protected]>
  • Loading branch information
GregSavin committed Aug 26, 2024
1 parent aac65df commit 65e8f8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vscode-trace-extension/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<Extern
vscode.commands.registerCommand('traces.openTraceFile', async (file: vscode.Uri) => {
await startTraceServerIfAvailable(file.fsPath);
if (await isTraceServerUp()) {
fileOpenHandler(context, file);
await fileOpenHandler(context, file);
vscode.commands.executeCommand('trace-explorer.refreshContext');
}
})
Expand Down
2 changes: 1 addition & 1 deletion vscode-trace-extension/src/trace-explorer/trace-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const fileHandler =
async (context: vscode.ExtensionContext, traceUri: vscode.Uri): Promise<void> => {
const resolvedTraceURI: vscode.Uri = traceUri;
const { traceManager, experimentManager } = getManagers();
vscode.window.withProgress(
return vscode.window.withProgress(
{
location: vscode.ProgressLocation.Notification,
title: getProgressBarTitle(resolvedTraceURI),
Expand Down

0 comments on commit 65e8f8b

Please sign in to comment.