his.inlineCompletions.set(void 0,t),this.suggestWidgetInlineCompletions.set(void 0,t)}clearSuggestWidgetInlineCompletions(t){if(this._updateOperation.value?.request.context.selectedSuggestionInfo)this._updateOperation.clear();this.suggestWidgetInlineCompletions.set(void 0,t)}cancelUpdate(){this._updateOperation.clear()}};LU=o4t([C$e(3,be),C$e(4,Si)],LU);function r4t(e,t){return new Promise((i)=>{let n=void 0,o=setTimeout(()=>{if(n)n.dispose();i()},e);if(t)n=t.onCancellationRequested(()=>{if(clearTimeout(o),n)n.dispose();i()})})}class x$e{constructor(e,t,i){this.position=e,this.context=t,this.versionId=i}satisfies(e){return this.position.equals(e.position)&&yL(this.context.selectedSuggestionInfo,e.context.selectedSuggestionInfo,w6e())&&(e.context.triggerKind===Jc.Automatic||this.context.triggerKind===Jc.Explicit)&&this.versionId===e.versionId}}class y$e{constructor(e,t,i){this.request=e,this.cancellationTokenSource=t,this.promise=i}dispose(){this.cancellationTokenSource.cancel()}}class w$e{get inlineCompletions(){return this._inlineCompletions}constructor(e,t,i,n){this.inlineCompletionProviderResult=e,this.request=t,this._textModel=i,this._versionId=n,this._refCount=1,this._prependedInlineCompletionItems=[];let o=i.deltaDecorations([],e.completions.map((r)=>({range:r.range,options:{