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 d86925f commit 968b777Copy full SHA for 968b777
packages/jupyterlab-lsp/src/features/highlights.ts
@@ -145,6 +145,11 @@ export class HighlightsCM extends CodeMirrorIntegration {
145
return;
146
}
147
148
+ if (!root_position) {
149
+ this.console.warn('no root position available');
150
+ return;
151
+ }
152
+
153
const token = this.virtual_editor.get_token_at(root_position);
154
155
// if token has not changed, no need to update highlight, unless it is an empty token
0 commit comments