Skip to content

Commit

Permalink
fixes #105810
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorn committed Sep 1, 2020
1 parent 27f7eba commit f31055f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vs/workbench/contrib/debug/browser/variablesView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ export class VariablesView extends ViewPane {
private async onContextMenu(e: ITreeContextMenuEvent<IExpression | IScope>): Promise<void> {
const variable = e.element;
if (variable instanceof Variable && !!variable.value) {
this.debugProtocolVariableMenuContext.set(variable.variableMenuContext || '');

const actions: IAction[] = [];
const session = this.debugService.getViewModel().focusedSession;
if (session && session.capabilities.supportsSetVariable) {
Expand Down Expand Up @@ -225,7 +227,6 @@ export class VariablesView extends ViewPane {
variable: variable.toDebugProtocolObject()
};
const actionsDisposable = createAndFillInContextMenuActions(this.menu, { arg: context, shouldForwardArgs: false }, actions, this.contextMenuService);
this.debugProtocolVariableMenuContext.set(variable.variableMenuContext || '');

this.contextMenuService.showContextMenu({
getAnchor: () => e.anchor,
Expand Down

0 comments on commit f31055f

Please sign in to comment.