Skip to content

Commit

Permalink
do not support variable view if were unsure how to retreive the varia…
Browse files Browse the repository at this point in the history
…ble (#16061)
  • Loading branch information
amunger committed Sep 18, 2024
1 parent 32f816c commit 33cd67f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/notebooks/debugger/debuggerVariables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
Expand Down

0 comments on commit 33cd67f

Please sign in to comment.