Skip to content

Commit ab5698f

Browse files
committed
1 parent 8c9771f commit ab5698f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/vs/editor/browser/services/inlineCompletionsService.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6-
import { WindowIntervalTimer } from '../../../base/browser/dom.js';
6+
import { TimeoutTimer } from '../../../base/common/async.js';
77
import { BugIndicatingError } from '../../../base/common/errors.js';
88
import { Emitter, Event } from '../../../base/common/event.js';
99
import { Disposable } from '../../../base/common/lifecycle.js';
@@ -73,15 +73,15 @@ export class InlineCompletionsService extends Disposable implements IInlineCompl
7373
return Math.max(0, this._snoozeTimeEnd - Date.now());
7474
}
7575

76-
private _timer: WindowIntervalTimer;
76+
private _timer: TimeoutTimer;
7777

7878
constructor(
7979
@IContextKeyService private _contextKeyService: IContextKeyService,
8080
@ITelemetryService private _telemetryService: ITelemetryService,
8181
) {
8282
super();
8383

84-
this._timer = this._register(new WindowIntervalTimer());
84+
this._timer = this._register(new TimeoutTimer());
8585

8686
const inlineCompletionsSnoozing = InlineCompletionsSnoozing.bindTo(this._contextKeyService);
8787
this._register(this.onDidChangeIsSnoozing(() => inlineCompletionsSnoozing.set(this.isSnoozing())));

0 commit comments

Comments
 (0)