Removes default context.

This commit is contained in:
Henning Dieterichs
2020-05-13 18:21:43 +02:00
parent d73b3797cb
commit 33b076cbd3

View File

@@ -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 };
}