File tree 1 file changed +8
-5
lines changed
packages/app/src/app/overmind/effects/vscode
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';
28
28
import FontFaceObserver from 'fontfaceobserver' ;
29
29
import { debounce } from 'lodash-es' ;
30
30
import * as childProcess from 'node-services/lib/child_process' ;
31
+ import { COMMENTS } from '@codesandbox/common/lib/utils/feature-flags' ;
31
32
import { json } from 'overmind' ;
32
33
import io from 'socket.io-client' ;
33
34
@@ -1102,12 +1103,14 @@ export class VSCodeEffect {
1102
1103
1103
1104
this . modelCursorPositionListener = activeEditor . onDidChangeCursorPosition (
1104
1105
cursor => {
1105
- const model = activeEditor . getModel ( ) ;
1106
+ if ( COMMENTS ) {
1107
+ const model = activeEditor . getModel ( ) ;
1106
1108
1107
- this . modelsHandler . updateLineCommentIndication (
1108
- model ,
1109
- cursor . position . lineNumber
1110
- ) ;
1109
+ this . modelsHandler . updateLineCommentIndication (
1110
+ model ,
1111
+ cursor . position . lineNumber
1112
+ ) ;
1113
+ }
1111
1114
}
1112
1115
) ;
1113
1116
You can’t perform that action at this time.
0 commit comments