File tree Expand file tree Collapse file tree
src/vs/editor/browser/services Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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' ;
77import { BugIndicatingError } from '../../../base/common/errors.js' ;
88import { Emitter , Event } from '../../../base/common/event.js' ;
99import { 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 ( ) ) ) ) ;
You can’t perform that action at this time.
0 commit comments