Skip to content

Commit b762ebd

Browse files
committed
Add more flags
1 parent 8e7ca1b commit b762ebd

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

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

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
NotificationStatus,
55
} from '@codesandbox/notifications/lib/state';
66

7+
import { COMMENTS } from '@codesandbox/common/lib/utils/feature-flags';
78
import { KeyCode, KeyMod } from './keyCodes';
89

910
// Copied from 'common/actions' in vscode
@@ -161,14 +162,16 @@ export class Workbench {
161162
},
162163
});
163164

164-
this.addWorkbenchAction({
165-
id: 'comments.add',
166-
label: 'Add code comment',
167-
category: 'Comments',
168-
run: () => {
169-
this.controller.getSignal('comments.createComment')();
170-
},
171-
});
165+
if (COMMENTS) {
166+
this.addWorkbenchAction({
167+
id: 'comments.add',
168+
label: 'Add code comment',
169+
category: 'Comments',
170+
run: () => {
171+
this.controller.getSignal('comments.createComment')();
172+
},
173+
});
174+
}
172175

173176
this.appendMenuItem(MenuId.MenubarFileMenu, {
174177
group: '1_new',

0 commit comments

Comments
 (0)