Skip to content

Commit

Permalink
Refresh mutations view after creating mutation
Browse files Browse the repository at this point in the history
  • Loading branch information
jonlamb-gh committed Jan 17, 2024
1 parent 4148fd5 commit 0120229
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions vscode/src/deviantCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ async function runDeviantMutationClearCommand(args: MutationClearCommandArgs) {

try {
const res = await execFile(deviantPath, commandArgs, { encoding: "utf8" });
await vscode.window.showInformationMessage(res.stdout);
const _dont_wait = vscode.window.showInformationMessage(res.stdout);
} catch (e) {
vscode.window.showErrorMessage(e.stderr.trim());
}

vscode.commands.executeCommand("auxon.mutations.refresh");
}

export type MutationCreateCommandArgs = {
Expand Down Expand Up @@ -68,10 +70,12 @@ async function runDeviantMutationCreateCommand(args: MutationCreateCommandArgs)
try {
const res = await execFile(deviantPath, commandArgs, { encoding: "utf8" });
const output = JSON.parse(res.stdout) as string;
await vscode.window.showInformationMessage(`Created mutation '${output["mutation_id"]}'`);
const _dont_wait = vscode.window.showInformationMessage(`Created mutation '${output["mutation_id"]}'`);
} catch (e) {
vscode.window.showErrorMessage(e.stderr.trim());
}

vscode.commands.executeCommand("auxon.mutations.refresh");
}

// TODO - add linked experiment option
Expand Down

0 comments on commit 0120229

Please sign in to comment.