Return 'variablesReference' in EnhancedDebugSession.evaluate

This commit is contained in:
fwcd
2020-09-02 17:04:11 +02:00
parent d68d3b4076
commit fc142926b8

View File

@@ -55,13 +55,13 @@ export class EnhancedDebugSession {
expression: string;
frameId: number | undefined;
context: "watch" | "repl" | "copy";
}): Promise<{ result: string }> {
}): Promise<{ result: string, variablesReference: number }> {
const reply = await this.session.customRequest("evaluate", {
expression: args.expression,
frameId: args.frameId,
context: args.context,
});
return { result: reply.result };
return { result: reply.result, variablesReference: reply.variablesReference };
}
}
interface StackFrame {