Skip to content

Commit 8403fb5

Browse files
committed
prevent error in evaluateRequest in the "hover" context
1 parent ab2ffff commit 8403fb5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Versioning].
2020
([@GitMensch])
2121
- New `frameFilters` option for GDB that allows using custom frame filters,
2222
enabled by default ([@JacquesLucke])
23+
- Suppress error for hover as the user may just play with the mouse ([@oltolm]).
2324

2425
## [0.27.0] - 2024-02-07
2526

src/mibase.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,12 @@ export class MI2DebugSession extends DebugSession {
715715
};
716716
this.sendResponse(response);
717717
}, msg => {
718-
this.sendErrorResponse(response, 7, msg.toString());
718+
if (args.context == "hover") {
719+
// suppress error for hover as the user may just play with the mouse
720+
this.sendResponse(response);
721+
} else {
722+
this.sendErrorResponse(response, 7, msg.toString());
723+
}
719724
});
720725
} else {
721726
this.miDebugger.sendUserInput(args.expression, threadId, level).then(output => {

0 commit comments

Comments
 (0)