File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/vs/editor/contrib/wordHighlighter/browser Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -491,6 +491,7 @@ class WordHighlighter {
491
491
492
492
private _stopAll ( ) : void {
493
493
// Remove any existing decorations
494
+ // TODO: @Yoyokrazy - this triggers as notebooks scroll, causing highlights to disappear momentarily.
494
495
this . _removeAllDecorations ( ) ;
495
496
496
497
// Cancel any renderDecorationsTimer
@@ -608,7 +609,7 @@ class WordHighlighter {
608
609
private _run ( ) : void {
609
610
610
611
let workerRequestIsValid ;
611
- if ( ! this . editor . hasWidgetFocus ( ) ) { // no focus (new nb cell, etc)
612
+ if ( ! this . editor . hasTextFocus ( ) ) { // no focus (new nb cell, etc)
612
613
if ( WordHighlighter . query === null ) {
613
614
// no previous query, nothing to highlight
614
615
return ;
You can’t perform that action at this time.
0 commit comments