Skip to content

Commit fcdb20a

Browse files
committed
Clear last_token after clearing highlights
1 parent 9e243c1 commit fcdb20a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/jupyterlab-lsp/src/features/highlights.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,10 @@ export class HighlightsCM extends CodeMirrorIntegration {
167167
// request the highlights as soon as possible
168168
this.debounced_get_highlight.invoke(),
169169
// and in the meantime remove the old markers
170-
async () => this.clear_markers()
170+
async () => {
171+
this.clear_markers();
172+
this.last_token = null;
173+
}
171174
])
172175
.then(([highlights]) => {
173176
// in the time the response returned the document might have been closed - check that

0 commit comments

Comments
 (0)