From 33b076cbd32e756438f90bc458336986a289d555 Mon Sep 17 00:00:00 2001 From: Henning Dieterichs Date: Wed, 13 May 2020 18:21:43 +0200 Subject: [PATCH] Removes default context. --- extension/src/VsCodeDebugger.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/extension/src/VsCodeDebugger.ts b/extension/src/VsCodeDebugger.ts index ea77edb..add35a4 100644 --- a/extension/src/VsCodeDebugger.ts +++ b/extension/src/VsCodeDebugger.ts @@ -160,15 +160,20 @@ export class VsCodeDebugSession { } } + /** + * Evaluates the given expression. + * If context is "watch", long results are usually shortened. + */ public async evaluate(args: { expression: string; frameId: number | undefined; - context?: "watch" | "repl"; + context: "watch" | "repl"; }): Promise<{ result: string }> { const reply = await this.session.customRequest("evaluate", { expression: args.expression, frameId: args.frameId, - context: args.context || "watch", + + context: args.context, }); return { result: reply.result }; }