Skip to content

Commit

Permalink
without then
Browse files Browse the repository at this point in the history
  • Loading branch information
lucsomers101 committed Feb 23, 2024
1 parent 5ab70a9 commit 235e293
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/commands/generatePrototypeCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class generatePrototypeCommand {
});
}

private async replaceMarkers(data: Uint8Array)
private replaceMarkers(data: Uint8Array)
{
const newData: Uint8Array = fileUtils.replaceMarkers(data, new Map<string, string>(
[
Expand All @@ -61,8 +61,7 @@ export class generatePrototypeCommand {
terminalUtils.RunCommandsInExistingTerminal(term,
[`${this.manifestFile.fileUri.fsPath}`]);

await vscode.workspace.fs.writeFile(this.manifestFile.fileUri, newData);
this.runPrototypeCommand();
vscode.workspace.fs.writeFile(this.manifestFile.fileUri, newData).then(this.runPrototypeCommand);
}

private runPrototypeCommand()
Expand Down

0 comments on commit 235e293

Please sign in to comment.