@@ -195,26 +195,26 @@ class MainThreadSCMHistoryProvider implements ISCMHistoryProvider {
195
195
196
196
constructor ( private readonly proxy : ExtHostSCMShape , private readonly handle : number ) { }
197
197
198
- async resolveHistoryItemChatContext ( historyItemId : string ) : Promise < string | undefined > {
199
- return this . proxy . $resolveHistoryItemChatContext ( this . handle , historyItemId , CancellationToken . None ) ;
198
+ async resolveHistoryItemChatContext ( historyItemId : string , token ?: CancellationToken ) : Promise < string | undefined > {
199
+ return this . proxy . $resolveHistoryItemChatContext ( this . handle , historyItemId , token ?? CancellationToken . None ) ;
200
200
}
201
201
202
- async resolveHistoryItemRefsCommonAncestor ( historyItemRefs : string [ ] ) : Promise < string | undefined > {
203
- return this . proxy . $resolveHistoryItemRefsCommonAncestor ( this . handle , historyItemRefs , CancellationToken . None ) ;
202
+ async resolveHistoryItemRefsCommonAncestor ( historyItemRefs : string [ ] , token : CancellationToken ) : Promise < string | undefined > {
203
+ return this . proxy . $resolveHistoryItemRefsCommonAncestor ( this . handle , historyItemRefs , token ?? CancellationToken . None ) ;
204
204
}
205
205
206
- async provideHistoryItemRefs ( historyItemsRefs ?: string [ ] ) : Promise < ISCMHistoryItemRef [ ] | undefined > {
207
- const historyItemRefs = await this . proxy . $provideHistoryItemRefs ( this . handle , historyItemsRefs , CancellationToken . None ) ;
206
+ async provideHistoryItemRefs ( historyItemsRefs ?: string [ ] , token ?: CancellationToken ) : Promise < ISCMHistoryItemRef [ ] | undefined > {
207
+ const historyItemRefs = await this . proxy . $provideHistoryItemRefs ( this . handle , historyItemsRefs , token ?? CancellationToken . None ) ;
208
208
return historyItemRefs ?. map ( ref => ( { ...ref , icon : getIconFromIconDto ( ref . icon ) } ) ) ;
209
209
}
210
210
211
- async provideHistoryItems ( options : ISCMHistoryOptions ) : Promise < ISCMHistoryItem [ ] | undefined > {
212
- const historyItems = await this . proxy . $provideHistoryItems ( this . handle , options , CancellationToken . None ) ;
211
+ async provideHistoryItems ( options : ISCMHistoryOptions , token ?: CancellationToken ) : Promise < ISCMHistoryItem [ ] | undefined > {
212
+ const historyItems = await this . proxy . $provideHistoryItems ( this . handle , options , token ?? CancellationToken . None ) ;
213
213
return historyItems ?. map ( historyItem => toISCMHistoryItem ( historyItem ) ) ;
214
214
}
215
215
216
- async provideHistoryItemChanges ( historyItemId : string , historyItemParentId : string | undefined ) : Promise < ISCMHistoryItemChange [ ] | undefined > {
217
- const changes = await this . proxy . $provideHistoryItemChanges ( this . handle , historyItemId , historyItemParentId , CancellationToken . None ) ;
216
+ async provideHistoryItemChanges ( historyItemId : string , historyItemParentId : string | undefined , token ?: CancellationToken ) : Promise < ISCMHistoryItemChange [ ] | undefined > {
217
+ const changes = await this . proxy . $provideHistoryItemChanges ( this . handle , historyItemId , historyItemParentId , token ?? CancellationToken . None ) ;
218
218
return changes ?. map ( change => ( {
219
219
uri : URI . revive ( change . uri ) ,
220
220
originalUri : change . originalUri && URI . revive ( change . originalUri ) ,
0 commit comments