Skip to content

Commit

Permalink
allow multiple audio cues to play for diff navigation (#171546)
Browse files Browse the repository at this point in the history
  • Loading branch information
meganrogge committed Jan 17, 2023
1 parent 3572b5e commit 12e6ef9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/editor/browser/widget/diffNavigator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,11 @@ export class DiffNavigator extends Disposable implements IDiffNavigator {
}
const insertedOrModified = modifiedEditor.getLineDecorations(lineNumber).find(l => l.options.className === 'line-insert');
if (insertedOrModified) {
this._audioCueService.playAudioCue(AudioCue.diffLineModified);
this._audioCueService.playAudioCue(AudioCue.diffLineModified, true);
} else if (jumpToChange) {
// The modified editor does not include deleted lines, but when
// we are moved to the area where lines were deleted, play this cue
this._audioCueService.playAudioCue(AudioCue.diffLineDeleted);
this._audioCueService.playAudioCue(AudioCue.diffLineDeleted, true);
} else {
return;
}
Expand Down

0 comments on commit 12e6ef9

Please sign in to comment.