Skip to content

Commit

Permalink
moved test terminal to a later step
Browse files Browse the repository at this point in the history
  • Loading branch information
lucsomers101 committed Feb 20, 2024
1 parent fabe78e commit 69925eb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/commands/generatePrototypeCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,23 +48,23 @@ export class generatePrototypeCommand {

private replaceMarkers(data: Uint8Array)
{
const term = this.builder.setName("test terminal replace markers")
.getTerminal();

const newData: Uint8Array = fileUtils.replaceMarkers(data, new Map<string, string>(
[
['{{zipFileContent}}', this.manifestFile.encodedZipContent],
['{{mainScript}}', this.manifestFile.encodedMainScript]
]
));

terminalUtils.RunCommandsInExistingTerminal(term,[this.manifestFile.encodedMainScript])

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

private runPrototypeCommand()
{
const term = this.builder.setName("test terminal replace markers")
.getTerminal();

terminalUtils.RunCommandsInExistingTerminal(term,['test'])

const deployment: string = 'prototype';
const service: string = 'prototype';

Expand Down

0 comments on commit 69925eb

Please sign in to comment.