Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Add missing v1 call for evaluateRequest. Fixes #1714 (#1718)
Browse files Browse the repository at this point in the history
  • Loading branch information
lggomez authored and ramya-rao-a committed Jun 6, 2018
1 parent 628b5fc commit d4be201
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/debugAdapter/goDebug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ class GoDebugSession extends DebugSession {
Scope: scope,
Cfg: this.delve.loadConfig
};
this.delve.call<EvalOut | DebugVariable>('Eval', [evalSymbolArgs], (err, out) => {
this.delve.call<EvalOut | DebugVariable>(this.delve.isApiV1 ? 'EvalSymbol' : 'Eval', [evalSymbolArgs], (err, out) => {
if (err) {
logError('Failed to eval expression: ', JSON.stringify(evalSymbolArgs, null, ' '), '\n\rEval error:', err.toString());
return this.sendErrorResponse(response, 2009, 'Unable to eval expression: "{e}"', { e: err.toString() });
Expand Down

0 comments on commit d4be201

Please sign in to comment.