Skip to content

Commit

Permalink
Update terminalBuilder.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
lucsomers101 committed Feb 19, 2024
1 parent 5270f26 commit dbbf5df
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/builders/terminalBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ export class terminalBuilder

public getTerminal(): vscode.Terminal {
const toReturn = vscode.window.createTerminal({name:this.terminalInfoBuild.terminalName,cwd:fileUtils.generateWorkspacePath(this.terminalInfoBuild.workingDir)});

if(this.terminalInfoBuild.terminalVisible)
toReturn.show();

this.reset();
return toReturn;
}
Expand All @@ -23,6 +27,7 @@ export class terminalBuilder

public setVisibility(terminalVisible:boolean) : terminalBuilder {
this.terminalInfoBuild.terminalVisible = terminalVisible;

return this;
}

Expand Down

0 comments on commit dbbf5df

Please sign in to comment.