Skip to content

Commit 53c319d

Browse files
authored
Fix: showDebugHover command doesn't work with keybinding using alt key (microsoft#181936)
Fixes microsoft#181930
1 parent 66335ab commit 53c319d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/workbench/contrib/debug/browser/debugEditorContribution.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ export class DebugEditorContribution implements IDebugEditorContribution {
373373
async showHover(position: Position, focus: boolean): Promise<void> {
374374
const sf = this.debugService.getViewModel().focusedStackFrame;
375375
const model = this.editor.getModel();
376-
if (sf && model && this.uriIdentityService.extUri.isEqual(sf.source.uri, model.uri) && !this.altPressed) {
376+
if (sf && model && this.uriIdentityService.extUri.isEqual(sf.source.uri, model.uri)) {
377377
const result = await this.hoverWidget.showAt(position, focus);
378378
if (result === ShowDebugHoverResult.NOT_AVAILABLE) {
379379
// When no expression available fallback to editor hover
@@ -408,7 +408,7 @@ export class DebugEditorContribution implements IDebugEditorContribution {
408408
private get showHoverScheduler(): RunOnceScheduler {
409409
const hoverOption = this.editor.getOption(EditorOption.hover);
410410
const scheduler = new RunOnceScheduler(() => {
411-
if (this.hoverPosition) {
411+
if (this.hoverPosition && !this.altPressed) {
412412
this.showHover(this.hoverPosition, false);
413413
}
414414
}, hoverOption.delay * 2);

0 commit comments

Comments
 (0)