File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
packages/app/src/app/overmind/effects/vscode Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ import { listen } from 'codesandbox-api';
2828import FontFaceObserver from 'fontfaceobserver' ;
2929import { debounce } from 'lodash-es' ;
3030import * as childProcess from 'node-services/lib/child_process' ;
31+ import { COMMENTS } from '@codesandbox/common/lib/utils/feature-flags' ;
3132import { json } from 'overmind' ;
3233import io from 'socket.io-client' ;
3334
@@ -1102,12 +1103,14 @@ export class VSCodeEffect {
11021103
11031104 this . modelCursorPositionListener = activeEditor . onDidChangeCursorPosition (
11041105 cursor => {
1105- const model = activeEditor . getModel ( ) ;
1106+ if ( COMMENTS ) {
1107+ const model = activeEditor . getModel ( ) ;
11061108
1107- this . modelsHandler . updateLineCommentIndication (
1108- model ,
1109- cursor . position . lineNumber
1110- ) ;
1109+ this . modelsHandler . updateLineCommentIndication (
1110+ model ,
1111+ cursor . position . lineNumber
1112+ ) ;
1113+ }
11111114 }
11121115 ) ;
11131116
You can’t perform that action at this time.
0 commit comments