Skip to content

Commit

Permalink
Decreasing the time to 100ms in RunOnceScheduler for inline chat spar…
Browse files Browse the repository at this point in the history
…kle (#196284)

decreasing the time
  • Loading branch information
aiday-mar authored Oct 24, 2023
1 parent 80d30b5 commit a8b7239
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class InlineChatDecorationsContribution extends Disposable implements IEd
return;
}
const editor = this._editor;
const decorationUpdateScheduler = new RunOnceScheduler(() => this._onSelectionOrContentChanged(editor), 200);
const decorationUpdateScheduler = new RunOnceScheduler(() => this._onSelectionOrContentChanged(editor), 100);
this._localToDispose.add(decorationUpdateScheduler);
this._localToDispose.add(this._editor.onDidChangeCursorSelection(() => decorationUpdateScheduler.schedule()));
this._localToDispose.add(this._editor.onDidChangeModelContent(() => decorationUpdateScheduler.schedule()));
Expand Down

0 comments on commit a8b7239

Please sign in to comment.