Skip to content

Commit 7272016

Browse files
committed
Add more behind a feature flag
1 parent 3e3522a commit 7272016

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

packages/app/src/app/overmind/effects/vscode/Workbench.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -372,14 +372,16 @@ export class Workbench {
372372
},
373373
});
374374

375-
this.appendMenuItem(MenuId.EditorContext, {
376-
group: '0_comments',
377-
order: 0,
378-
command: {
379-
id: 'comments.add',
380-
title: 'Add code comment...',
381-
},
382-
});
375+
if (COMMENTS) {
376+
this.appendMenuItem(MenuId.EditorContext, {
377+
group: '0_comments',
378+
order: 0,
379+
command: {
380+
id: 'comments.add',
381+
title: 'Add code comment...',
382+
},
383+
});
384+
}
383385
}
384386

385387
private addWorkbenchAction({

0 commit comments

Comments
 (0)