Skip to content

Commit

Permalink
Don't always wipe task's terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
sourishkrout committed Oct 4, 2022
1 parent 3391bc7 commit 19911c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/extension/executors/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ async function taskExecutor(
focus: true,
// why doesn't this work with Slient?
reveal: isBackground ? TaskRevealKind.Always : TaskRevealKind.Always,
panel: isBackground ? TaskPanelKind.New : TaskPanelKind.Shared
panel: isBackground ? TaskPanelKind.Dedicated : TaskPanelKind.Shared
}
if (isBackground) {
await commands.executeCommand('workbench.action.terminal.clear')
}
await commands.executeCommand('workbench.action.terminal.clear')
const execution = await tasks.executeTask(taskExecution)

const p = new Promise<number>((resolve) => {
Expand Down

0 comments on commit 19911c1

Please sign in to comment.