@@ -130,6 +130,7 @@ export class CategoryTreeNode extends TreeNode implements vscode.TreeItem {
130
130
public repositoryPageInformation : Map < string , PageInformation > = new Map < string , PageInformation > ( ) ;
131
131
public contextValue : string ;
132
132
public resourceUri : vscode . Uri ;
133
+ public tooltip ?: string | vscode . MarkdownString | undefined ;
133
134
134
135
constructor (
135
136
parent : TreeNodeParent ,
@@ -145,8 +146,8 @@ export class CategoryTreeNode extends TreeNode implements vscode.TreeItem {
145
146
super ( parent ) ;
146
147
147
148
this . prs = new Map ( ) ;
148
-
149
- const hasCopilotChanges = _categoryQuery && isCopilotQuery ( _categoryQuery ) && this . _copilotManager . notificationsCount > 0 ;
149
+ const isCopilot = _categoryQuery && isCopilotQuery ( _categoryQuery ) ;
150
+ const hasCopilotChanges = isCopilot && this . _copilotManager . notificationsCount > 0 ;
150
151
151
152
switch ( this . type ) {
152
153
case PRType . All :
@@ -182,6 +183,18 @@ export class CategoryTreeNode extends TreeNode implements vscode.TreeItem {
182
183
if ( this . _categoryQuery ) {
183
184
this . contextValue = 'query' ;
184
185
}
186
+
187
+ if ( isCopilot ) {
188
+ this . tooltip = vscode . l10n . t ( 'Pull requests you asked the coding agent to create' ) ;
189
+ } else if ( this . type === PRType . LocalPullRequest ) {
190
+ this . tooltip = vscode . l10n . t ( 'Pull requests for branches you have locally' ) ;
191
+ } else if ( this . type === PRType . All ) {
192
+ this . tooltip = vscode . l10n . t ( 'All open pull requests in the current repository' ) ;
193
+ } else if ( _categoryQuery ) {
194
+ this . tooltip = new vscode . MarkdownString ( vscode . l10n . t ( 'Pull requests for query: `{0}`' , _categoryQuery ) ) ;
195
+ } else {
196
+ this . tooltip = this . label ;
197
+ }
185
198
}
186
199
187
200
public async expandPullRequest ( pullRequest : PullRequestModel , retry : boolean = true ) : Promise < boolean > {
0 commit comments