From ab63475901454c089448ee4d4312a421d7eab41d Mon Sep 17 00:00:00 2001 From: amunger Date: Wed, 18 Sep 2024 09:48:17 -0700 Subject: [PATCH] do not support variable view if were unsure how to retreive the variable --- src/notebooks/debugger/debuggerVariables.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/notebooks/debugger/debuggerVariables.ts b/src/notebooks/debugger/debuggerVariables.ts index 7bed368a290..c3e82e548a6 100644 --- a/src/notebooks/debugger/debuggerVariables.ts +++ b/src/notebooks/debugger/debuggerVariables.ts @@ -396,7 +396,7 @@ export class DebuggerVariables private monkeyPatchDataViewableVariables(variablesResponse: DebugProtocol.VariablesResponse) { variablesResponse.body.variables.forEach((v) => { - if (v.type && DataViewableTypes.has(v.type)) { + if (v.type && DataViewableTypes.has(v.type) && v.evaluateName) { // eslint-disable-next-line @typescript-eslint/no-explicit-any (v as any).__vscodeVariableMenuContext = 'viewableInDataViewer'; }