We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f34d91 commit 83ce87aCopy full SHA for 83ce87a
packages/jupyterlab-lsp/src/features/syntax_highlighting.ts
@@ -77,11 +77,10 @@ export class CMSyntaxHighlighting extends CodeMirrorIntegration {
77
continue;
78
}
79
80
- let old_mode = editor.getOption('mode');
81
-
82
// change the mode if the majority of the code is the foreign code
83
if (coverage > this.settings.composite.foreignCodeThreshold) {
84
editors_with_current_highlight.add(ce_editor);
+ let old_mode = editor.getOption('mode');
85
if (old_mode != mode.mime) {
86
editor.setOption('mode', mode.mime);
87
0 commit comments