File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed
packages/app/src/app/overmind/effects/vscode Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 44 NotificationStatus ,
55} from '@codesandbox/notifications/lib/state' ;
66
7+ import { COMMENTS } from '@codesandbox/common/lib/utils/feature-flags' ;
78import { 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' ,
You can’t perform that action at this time.
0 commit comments