From 8403fb5ecdf3d6336c2cb0b5674c468efbfea17b Mon Sep 17 00:00:00 2001 From: oltolm Date: Sat, 24 Aug 2024 17:45:10 +0200 Subject: [PATCH] prevent error in evaluateRequest in the "hover" context --- CHANGELOG.md | 1 + src/mibase.ts | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f844a7..6112a98 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/mibase.ts b/src/mibase.ts index 499293e..1aa859a 100644 --- a/src/mibase.ts +++ b/src/mibase.ts @@ -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 => {