Skip to content

Commit

Permalink
Merge pull request #6 from hyoban/fix/show-terminal
Browse files Browse the repository at this point in the history
fix: also show terminal after new created
  • Loading branch information
tjx666 authored Jul 13, 2024
2 parents c153a35 + eb10fef commit c9af55d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/runNpmScriptInTerminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export async function runNpmScriptInTerminal(args: Args) {
const terminalName = 'Run Script';
let terminal = vscode.window.terminals.find((terminal) => terminal.name === terminalName);
if (terminal) {
terminal.show();
terminal.sendText(`cd ${args.cwd}`);
} else {
terminal = vscode.window.createTerminal({
Expand All @@ -29,4 +28,5 @@ export async function runNpmScriptInTerminal(args: Args) {
});
}
terminal.sendText(`${pm} run ${args.scriptName}`);
terminal.show();
}

0 comments on commit c9af55d

Please sign in to comment.