From 4fe853d033027e5a5efaa59272b07d247ef9af0a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 26 Aug 2025 08:28:35 +0000 Subject: [PATCH 1/5] Initial plan From 3de270bed4181358c768b4379343bbc2d1d8220f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 26 Aug 2025 08:45:32 +0000 Subject: [PATCH 2/5] Initial analysis and plan for improving PR query configuration documentation Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com> --- ...ode.proposed.chatParticipantAdditions.d.ts | 20 +++++++++---------- ...scode.proposed.chatParticipantPrivate.d.ts | 2 ++ ...vscode.proposed.languageModelDataPart.d.ts | 4 ++-- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/src/@types/vscode.proposed.chatParticipantAdditions.d.ts b/src/@types/vscode.proposed.chatParticipantAdditions.d.ts index 772d2fdf90..a07171f511 100644 --- a/src/@types/vscode.proposed.chatParticipantAdditions.d.ts +++ b/src/@types/vscode.proposed.chatParticipantAdditions.d.ts @@ -164,10 +164,10 @@ declare module 'vscode' { /** * A specialized progress part for displaying thinking/reasoning steps. */ - export class ChatResponseThinkingProgressPart extends ChatResponseProgressPart { - value: string; + export class ChatResponseThinkingProgressPart { + value: string | string[]; id?: string; - metadata?: string; + metadata?: { readonly [key: string]: any }; task?: (progress: Progress) => Thenable; /** @@ -175,7 +175,7 @@ declare module 'vscode' { * @param value An initial progress message * @param task A task that will emit thinking parts during its execution */ - constructor(value: string, id?: string, metadata?: string, task?: (progress: Progress) => Thenable); + constructor(value: string | string[], id?: string, metadata?: { readonly [key: string]: any }, task?: (progress: Progress) => Thenable); } export class ChatResponseReferencePart2 { @@ -328,18 +328,18 @@ declare module 'vscode' { } export type ThinkingDelta = { - text?: string; + text?: string | string[]; id: string; - metadata?: string; + metadata?: { readonly [key: string]: any }; } | { - text?: string; + text?: string | string[]; id?: string; - metadata: string; + metadata: { readonly [key: string]: any }; } | { - text: string; + text: string | string[]; id?: string; - metadata?: string; + metadata?: { readonly [key: string]: any }; }; export enum ChatResponseClearToPreviousToolInvocationReason { diff --git a/src/@types/vscode.proposed.chatParticipantPrivate.d.ts b/src/@types/vscode.proposed.chatParticipantPrivate.d.ts index 5e8b337772..66ae4a6310 100644 --- a/src/@types/vscode.proposed.chatParticipantPrivate.d.ts +++ b/src/@types/vscode.proposed.chatParticipantPrivate.d.ts @@ -183,6 +183,8 @@ declare module 'vscode' { isQuotaExceeded?: boolean; level?: ChatErrorLevel; + + code?: string; } export namespace chat { diff --git a/src/@types/vscode.proposed.languageModelDataPart.d.ts b/src/@types/vscode.proposed.languageModelDataPart.d.ts index d2cd676400..4d491a66ca 100644 --- a/src/@types/vscode.proposed.languageModelDataPart.d.ts +++ b/src/@types/vscode.proposed.languageModelDataPart.d.ts @@ -42,7 +42,7 @@ declare module 'vscode' { * A string or heterogeneous array of things that a message can contain as content. Some parts may be message-type * specific for some models. */ - content: Array; + content: Array; /** * The optional name of a user for this message. @@ -56,7 +56,7 @@ declare module 'vscode' { * @param content The content of the message. * @param name The optional name of a user for the message. */ - constructor(role: LanguageModelChatMessageRole, content: string | Array, name?: string); + constructor(role: LanguageModelChatMessageRole, content: string | Array, name?: string); } /** From 1171df5b839c196ccb668d149820f4d11791f170 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 26 Aug 2025 08:48:18 +0000 Subject: [PATCH 3/5] Enhance PR query configuration with comprehensive examples and better documentation Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com> --- package.nls.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.nls.json b/package.nls.json index 9ea74fca7e..d8e7f0442f 100644 --- a/package.nls.json +++ b/package.nls.json @@ -25,9 +25,9 @@ "githubPullRequests.codingAgent.autoCommitAndPush.description": "Allow automatic git operations (commit, push) to be performed when starting a coding agent session", "githubPullRequests.codingAgent.promptForConfirmation.description": "Prompt for confirmation before initiating a coding agent session from the UI integration.", "githubPullRequests.remotes.markdownDescription": "List of remotes, by name, to fetch pull requests from.", - "githubPullRequests.queries.markdownDescription": "Specifies what queries should be used in the GitHub Pull Requests tree. All queries are made against **the currently opened repos**. Each query object has a `label` that will be shown in the tree and a search `query` using [GitHub search syntax](https://help.github.com/en/articles/understanding-the-search-syntax). The following variables can be used: \n - `${user}` will resolve to the currently logged in user \n - `${owner}` will resolve to the owner of the current repository, ex. `microsoft` in `microsoft/vscode` \n - `${repository}` will resolve to the repository name, ex. `vscode` in `microsoft/vscode` \n - `${today-Nd}`, where `N` is the number of days ago, will resolve to a date, ex. `2025-01-04`. \n\n By default these queries define the categories \"Waiting For My Review\", \"Assigned To Me\" and \"Created By Me\". If you want to preserve these, make sure they are still in the array when you modify the setting.", - "githubPullRequests.queries.label.description": "The label to display for the query in the Pull Requests tree", - "githubPullRequests.queries.query.description": "The query used for searching pull requests.", + "githubPullRequests.queries.markdownDescription": "Specifies what queries should be used in the GitHub Pull Requests tree. All queries are made against **the currently opened repos**. Each query object has a `label` that will be shown in the tree and a search `query` using [GitHub search syntax](https://help.github.com/en/articles/understanding-the-search-syntax). \n\n**Variables available:**\n - `${user}` - currently logged in user \n - `${owner}` - repository owner, ex. `microsoft` in `microsoft/vscode` \n - `${repository}` - repository name, ex. `vscode` in `microsoft/vscode` \n - `${today-Nd}` - date N days ago, ex. `${today-7d}` becomes `2025-01-04`\n\n**Example custom queries:**\n```json\n\"githubPullRequests.queries\": [\n {\n \"label\": \"Waiting For My Review\",\n \"query\": \"is:open review-requested:${user}\"\n },\n {\n \"label\": \"Mentioned Me\",\n \"query\": \"is:open mentions:${user}\"\n },\n {\n \"label\": \"Recent Activity\",\n \"query\": \"is:open updated:>${today-7d}\"\n },\n {\n \"label\": \"My Team's PRs\",\n \"query\": \"is:open team:${owner}/my-team\"\n },\n {\n \"label\": \"High Priority\",\n \"query\": \"is:open label:priority-high\"\n },\n {\n \"label\": \"Ready to Merge\",\n \"query\": \"is:open review:approved -label:do-not-merge\"\n }\n]\n```\n\nBy default these queries define the categories \"Waiting For My Review\", \"Assigned To Me\" and \"Created By Me\". If you want to preserve these, make sure they are still in the array when you modify the setting.", + "githubPullRequests.queries.label.description": "The label to display for the query in the Pull Requests tree.", + "githubPullRequests.queries.query.description": "The GitHub search query for finding pull requests. Use GitHub search syntax with variables like ${user}, ${owner}, ${repository}. Example: 'is:open author:${user}' finds your open pull requests.", "githubPullRequests.queries.copilotOnMyBehalf": "Copilot on My Behalf", "githubPullRequests.queries.waitingForMyReview": "Waiting For My Review", "githubPullRequests.queries.assignedToMe": "Assigned To Me", From 46800a864b04d761843d9959e164e1efe56e1e8b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 26 Aug 2025 08:59:58 +0000 Subject: [PATCH 4/5] Revert proposed API file changes as requested Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com> --- ...ode.proposed.chatParticipantAdditions.d.ts | 20 +++++++++---------- ...scode.proposed.chatParticipantPrivate.d.ts | 2 -- ...vscode.proposed.languageModelDataPart.d.ts | 4 ++-- 3 files changed, 12 insertions(+), 14 deletions(-) diff --git a/src/@types/vscode.proposed.chatParticipantAdditions.d.ts b/src/@types/vscode.proposed.chatParticipantAdditions.d.ts index a07171f511..772d2fdf90 100644 --- a/src/@types/vscode.proposed.chatParticipantAdditions.d.ts +++ b/src/@types/vscode.proposed.chatParticipantAdditions.d.ts @@ -164,10 +164,10 @@ declare module 'vscode' { /** * A specialized progress part for displaying thinking/reasoning steps. */ - export class ChatResponseThinkingProgressPart { - value: string | string[]; + export class ChatResponseThinkingProgressPart extends ChatResponseProgressPart { + value: string; id?: string; - metadata?: { readonly [key: string]: any }; + metadata?: string; task?: (progress: Progress) => Thenable; /** @@ -175,7 +175,7 @@ declare module 'vscode' { * @param value An initial progress message * @param task A task that will emit thinking parts during its execution */ - constructor(value: string | string[], id?: string, metadata?: { readonly [key: string]: any }, task?: (progress: Progress) => Thenable); + constructor(value: string, id?: string, metadata?: string, task?: (progress: Progress) => Thenable); } export class ChatResponseReferencePart2 { @@ -328,18 +328,18 @@ declare module 'vscode' { } export type ThinkingDelta = { - text?: string | string[]; + text?: string; id: string; - metadata?: { readonly [key: string]: any }; + metadata?: string; } | { - text?: string | string[]; + text?: string; id?: string; - metadata: { readonly [key: string]: any }; + metadata: string; } | { - text: string | string[]; + text: string; id?: string; - metadata?: { readonly [key: string]: any }; + metadata?: string; }; export enum ChatResponseClearToPreviousToolInvocationReason { diff --git a/src/@types/vscode.proposed.chatParticipantPrivate.d.ts b/src/@types/vscode.proposed.chatParticipantPrivate.d.ts index 66ae4a6310..5e8b337772 100644 --- a/src/@types/vscode.proposed.chatParticipantPrivate.d.ts +++ b/src/@types/vscode.proposed.chatParticipantPrivate.d.ts @@ -183,8 +183,6 @@ declare module 'vscode' { isQuotaExceeded?: boolean; level?: ChatErrorLevel; - - code?: string; } export namespace chat { diff --git a/src/@types/vscode.proposed.languageModelDataPart.d.ts b/src/@types/vscode.proposed.languageModelDataPart.d.ts index 4d491a66ca..d2cd676400 100644 --- a/src/@types/vscode.proposed.languageModelDataPart.d.ts +++ b/src/@types/vscode.proposed.languageModelDataPart.d.ts @@ -42,7 +42,7 @@ declare module 'vscode' { * A string or heterogeneous array of things that a message can contain as content. Some parts may be message-type * specific for some models. */ - content: Array; + content: Array; /** * The optional name of a user for this message. @@ -56,7 +56,7 @@ declare module 'vscode' { * @param content The content of the message. * @param name The optional name of a user for the message. */ - constructor(role: LanguageModelChatMessageRole, content: string | Array, name?: string); + constructor(role: LanguageModelChatMessageRole, content: string | Array, name?: string); } /** From 2984094de60d80eacffc03d5e12f432ce95fd530 Mon Sep 17 00:00:00 2001 From: Alex Ross <38270282+alexr00@users.noreply.github.com> Date: Fri, 29 Aug 2025 11:52:08 +0200 Subject: [PATCH 5/5] Rearrange description --- package.nls.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.nls.json b/package.nls.json index d8e7f0442f..f46332ec47 100644 --- a/package.nls.json +++ b/package.nls.json @@ -25,7 +25,7 @@ "githubPullRequests.codingAgent.autoCommitAndPush.description": "Allow automatic git operations (commit, push) to be performed when starting a coding agent session", "githubPullRequests.codingAgent.promptForConfirmation.description": "Prompt for confirmation before initiating a coding agent session from the UI integration.", "githubPullRequests.remotes.markdownDescription": "List of remotes, by name, to fetch pull requests from.", - "githubPullRequests.queries.markdownDescription": "Specifies what queries should be used in the GitHub Pull Requests tree. All queries are made against **the currently opened repos**. Each query object has a `label` that will be shown in the tree and a search `query` using [GitHub search syntax](https://help.github.com/en/articles/understanding-the-search-syntax). \n\n**Variables available:**\n - `${user}` - currently logged in user \n - `${owner}` - repository owner, ex. `microsoft` in `microsoft/vscode` \n - `${repository}` - repository name, ex. `vscode` in `microsoft/vscode` \n - `${today-Nd}` - date N days ago, ex. `${today-7d}` becomes `2025-01-04`\n\n**Example custom queries:**\n```json\n\"githubPullRequests.queries\": [\n {\n \"label\": \"Waiting For My Review\",\n \"query\": \"is:open review-requested:${user}\"\n },\n {\n \"label\": \"Mentioned Me\",\n \"query\": \"is:open mentions:${user}\"\n },\n {\n \"label\": \"Recent Activity\",\n \"query\": \"is:open updated:>${today-7d}\"\n },\n {\n \"label\": \"My Team's PRs\",\n \"query\": \"is:open team:${owner}/my-team\"\n },\n {\n \"label\": \"High Priority\",\n \"query\": \"is:open label:priority-high\"\n },\n {\n \"label\": \"Ready to Merge\",\n \"query\": \"is:open review:approved -label:do-not-merge\"\n }\n]\n```\n\nBy default these queries define the categories \"Waiting For My Review\", \"Assigned To Me\" and \"Created By Me\". If you want to preserve these, make sure they are still in the array when you modify the setting.", + "githubPullRequests.queries.markdownDescription": "Specifies what queries should be used in the GitHub Pull Requests tree. All queries are made against **the currently opened repos**. Each query object has a `label` that will be shown in the tree and a search `query` using [GitHub search syntax](https://help.github.com/en/articles/understanding-the-search-syntax). By default these queries define the categories \"Copilot on My Behalf\", \"Local Pull Request Branches\", \"Waiting For My Review\", \"Assigned To Me\" and \"Created By Me\". If you want to preserve these, make sure they are still in the array when you modify the setting. \n\n**Variables available:**\n - `${user}` - currently logged in user \n - `${owner}` - repository owner, ex. `microsoft` in `microsoft/vscode` \n - `${repository}` - repository name, ex. `vscode` in `microsoft/vscode` \n - `${today-Nd}` - date N days ago, ex. `${today-7d}` becomes `2025-01-04`\n\n**Example custom queries:**\n```json\n\"githubPullRequests.queries\": [\n {\n \"label\": \"Waiting For My Review\",\n \"query\": \"is:open review-requested:${user}\"\n },\n {\n \"label\": \"Mentioned Me\",\n \"query\": \"is:open mentions:${user}\"\n },\n {\n \"label\": \"Recent Activity\",\n \"query\": \"is:open updated:>${today-7d}\"\n }\n]\n```", "githubPullRequests.queries.label.description": "The label to display for the query in the Pull Requests tree.", "githubPullRequests.queries.query.description": "The GitHub search query for finding pull requests. Use GitHub search syntax with variables like ${user}, ${owner}, ${repository}. Example: 'is:open author:${user}' finds your open pull requests.", "githubPullRequests.queries.copilotOnMyBehalf": "Copilot on My Behalf",