Skip to content

Commit

Permalink
Fixes #213367
Browse files Browse the repository at this point in the history
  • Loading branch information
hediet committed Jul 9, 2024
1 parent abdbeb0 commit 1710635
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/vs/editor/contrib/find/browser/findModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,12 @@ export class FindModelBoundToEditorModel {
this._decorations = new FindDecorations(editor);
this._toDispose.add(this._decorations);

this._updateDecorationsScheduler = new RunOnceScheduler(() => this.research(false), 100);
this._updateDecorationsScheduler = new RunOnceScheduler(() => {
if (!this._editor.hasModel()) {
return;
}
return this.research(false);
}, 100);
this._toDispose.add(this._updateDecorationsScheduler);

this._toDispose.add(this._editor.onDidChangeCursorPosition((e: ICursorPositionChangedEvent) => {
Expand Down

0 comments on commit 1710635

Please sign in to comment.