File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/vs/workbench/contrib/positronVariables/browser/components Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,11 @@ export const VariableItem = (props: VariableItemProps) => {
137
137
) ) ;
138
138
}
139
139
140
- // If a binding was returned, save the binding between the viewer and the variable item.
140
+ // If a binding was returned, save the binding between the viewer and the
141
+ // variable item. Note that we intentionally treat `""` as falsy here so
142
+ // that backends can return an empty ID if no comm was open. This happens
143
+ // with Ark when the user views a function object: a virtual document is
144
+ // opened in an editor but is not managed by a comm.
141
145
if ( viewerId ) {
142
146
explorerService . setInstanceForVar ( viewerId , item . id ) ;
143
147
}
You can’t perform that action at this time.
0 commit comments