Skip to content

Commit

Permalink
prevent error in evaluateRequest in the "hover" context
Browse files Browse the repository at this point in the history
  • Loading branch information
oltolm committed Sep 14, 2024
1 parent ab2ffff commit 8403fb5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Versioning].
([@GitMensch])
- New `frameFilters` option for GDB that allows using custom frame filters,
enabled by default ([@JacquesLucke])
- Suppress error for hover as the user may just play with the mouse ([@oltolm]).

## [0.27.0] - 2024-02-07

Expand Down
7 changes: 6 additions & 1 deletion src/mibase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,12 @@ export class MI2DebugSession extends DebugSession {
};
this.sendResponse(response);
}, msg => {
this.sendErrorResponse(response, 7, msg.toString());
if (args.context == "hover") {
// suppress error for hover as the user may just play with the mouse
this.sendResponse(response);
} else {
this.sendErrorResponse(response, 7, msg.toString());
}
});
} else {
this.miDebugger.sendUserInput(args.expression, threadId, level).then(output => {
Expand Down

0 comments on commit 8403fb5

Please sign in to comment.