@@ -8,6 +8,7 @@ import { Repository } from '../../api/api';
88import { getCommentingRanges } from '../../common/commentingRanges' ;
99import { InMemFileChange , SlimFileChange } from '../../common/file' ;
1010import Logger from '../../common/logger' ;
11+ import { Resource } from '../../common/resources' ;
1112import { FILE_LIST_LAYOUT , PR_SETTINGS_NAMESPACE , SHOW_PULL_REQUEST_NUMBER_IN_TREE } from '../../common/settingKeys' ;
1213import { createPRNodeUri , DataUri , fromPRUri , Schemes } from '../../common/uri' ;
1314import { FolderRepositoryManager } from '../../github/folderRepositoryManager' ;
@@ -260,15 +261,24 @@ export class PRNode extends TreeNode implements vscode.CommentingRangeProvider2
260261 } ) ;
261262 }
262263
263- private async _getIcon ( ) : Promise < vscode . Uri | vscode . ThemeIcon > {
264+ private async _getIcon ( ) : Promise < vscode . Uri | vscode . ThemeIcon | { light : string | vscode . Uri ; dark : string | vscode . Uri } > {
264265 const copilotWorkingStatus = await this . pullRequestModel . githubRepository . copilotWorkingStatus ( this . pullRequestModel ) ;
265266 switch ( copilotWorkingStatus ) {
266267 case CopilotWorkingStatus . InProgress :
267- return new vscode . ThemeIcon ( 'copilot-in-progress' ) ;
268+ return {
269+ light : Resource . icons . copilot . INPROGRESS ,
270+ dark : Resource . icons . copilot . INPROGRESS
271+ } ;
268272 case CopilotWorkingStatus . Done :
269- return new vscode . ThemeIcon ( 'copilot-success' ) ;
273+ return {
274+ light : Resource . icons . copilot . SUCCESS ,
275+ dark : Resource . icons . copilot . SUCCESS
276+ } ;
270277 case CopilotWorkingStatus . Error :
271- return new vscode . ThemeIcon ( 'copilot-error' ) ;
278+ return {
279+ light : Resource . icons . copilot . ERROR ,
280+ dark : Resource . icons . copilot . ERROR
281+ } ;
272282 case CopilotWorkingStatus . NotCopilotIssue :
273283 default :
274284 return ( await DataUri . avatarCirclesAsImageDataUris ( this . _folderReposManager . context , [ this . pullRequestModel . author ] , 16 , 16 ) ) [ 0 ]
0 commit comments