Skip to content

Commit

Permalink
Fix quick fixes on Windows
Browse files Browse the repository at this point in the history
Now the command finished event will fire right before command started
which means we don't need this extra await anymore.

Fixes #199448
  • Loading branch information
Tyriar committed Nov 29, 2023
1 parent 57c5e37 commit 4a80f60
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,6 @@ export class TerminalQuickFixAddon extends Disposable implements ITerminalAddon,
this._disposeQuickFix(this._lastQuickFixId, false);
}


// Wait for the next command to start to ensure the quick fix marker is created on the next
// prompt line
const commandDetection = this._capabilities.get(TerminalCapability.CommandDetection);
if (commandDetection) {
await Event.toPromise(commandDetection.onCommandStarted);
}

const resolver = async (selector: ITerminalQuickFixOptions, lines?: string[]) => {
if (lines === undefined) {
return undefined;
Expand Down

0 comments on commit 4a80f60

Please sign in to comment.