Skip to content

Commit 98f4c1c

Browse files
committed
Cleanup
1 parent 1cf2ed9 commit 98f4c1c

File tree

4 files changed

+7
-70
lines changed

4 files changed

+7
-70
lines changed

build/filters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ module.exports.copyrightFilter = [
7171
'!package.nls.json',
7272
'!**/*.svg',
7373
'!src/integrations/gitlens/gitlens.d.ts',
74-
'!**/fixtures/**',
74+
'!**/fixtures/**'
7575
];
7676

7777
module.exports.tsFormattingFilter = [

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,15 +771,15 @@
771771
"githubPullRequests.projectTasksDashboard.enabled": {
772772
"type": "boolean",
773773
"default": false,
774-
"markdownDescription": "Enable the experimental project tasks dashboard feature. This adds a new dashboard for managing GitHub issues and tasks.",
774+
"markdownDescription": "%githubPullRequests.projectTasksDashboard.enabled.markdownDescription%",
775775
"tags": [
776776
"experimental"
777777
]
778778
},
779779
"githubPullRequests.projectTasksDashboard.issueQuery": {
780780
"type": "string",
781781
"default": "state:open assignee:@me milestone:\"September 2025\"",
782-
"description": "The GitHub query to use for the project tasks dashboard"
782+
"description": "%githubPullRequests.projectTasksDashboard.issueQuery.description%"
783783
}
784784
}
785785
},

package.nls.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@
176176
"view.github.active.pull.request.welcome.name": "Active Pull Request",
177177
"command.pull.request.category": "GitHub Pull Requests",
178178
"command.pr.projectTasksDashboard.open.title": "Open Dashboard",
179+
"githubPullRequests.projectTasksDashboard.enabled.markdownDescription": "Enable the experimental project tasks dashboard feature. This adds a new dashboard for managing GitHub issues and tasks.",
180+
"githubPullRequests.projectTasksDashboard.issueQuery.description": "The GitHub query to use for the project tasks dashboard",
179181
"command.pr.createDashboard.title": "Create Dashboard",
180182
"customEditor.github.tasks.displayName": "GitHub Tasks Editor",
181183
"command.githubpr.remoteAgent.title": "Remote agent integration",

src/github/taskDashboardWebviewProvider.ts

Lines changed: 2 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -758,17 +758,12 @@ export class DashboardWebviewProvider extends WebviewBase {
758758
}
759759
}
760760

761-
/**
762-
* Creates a temporary session that shows in the dashboard with a loading state
763-
*/
764761
private createTemporarySession(query: string, type: 'local' | 'remote'): string {
765762
const tempId = this._taskManager.createTemporarySession(query, type);
766763
// Immediately update the dashboard to show the temporary session
767764
this.updateDashboard();
768765
return tempId;
769-
} /**
770-
* Removes a temporary session from the dashboard
771-
*/
766+
}
772767
private removeTemporarySession(tempId: string): void {
773768
this._taskManager.removeTemporarySession(tempId);
774769
// Update dashboard to remove the temporary session
@@ -842,47 +837,6 @@ export class DashboardWebviewProvider extends WebviewBase {
842837
}
843838
}
844839

845-
846-
847-
848-
private async startCopilotTask(taskDescription: string, referencedIssues: number[], issueContext: IssueData[]): Promise<void> {
849-
if (!taskDescription) {
850-
return;
851-
}
852-
853-
try {
854-
// Build the enhanced query with issue context
855-
let enhancedQuery = `${taskDescription} `;
856-
857-
if (issueContext && issueContext.length > 0) {
858-
enhancedQuery += `\n\nReferenced Issues: \n`;
859-
for (const issue of issueContext) {
860-
enhancedQuery += `- Issue #${issue.number}: ${issue.title} \n`;
861-
enhancedQuery += ` URL: ${issue.url} \n`;
862-
if (issue.assignee) {
863-
enhancedQuery += ` Assignee: ${issue.assignee} \n`;
864-
}
865-
if (issue.milestone) {
866-
enhancedQuery += ` Milestone: ${issue.milestone} \n`;
867-
}
868-
enhancedQuery += ` State: ${issue.state} \n`;
869-
enhancedQuery += ` Updated: ${issue.updatedAt} \n\n`;
870-
}
871-
}
872-
873-
// Start a new copilot session with the enhanced context
874-
await vscode.commands.executeCommand('workbench.action.chat.open', { query: enhancedQuery });
875-
876-
// Optionally refresh the dashboard to show any new sessions
877-
setTimeout(() => {
878-
this.updateDashboard();
879-
}, 1000);
880-
} catch (error) {
881-
Logger.error(`Failed to start copilot task: ${error} `, DashboardWebviewProvider.ID);
882-
vscode.window.showErrorMessage('Failed to start copilot task. Make sure the Chat extension is available.');
883-
}
884-
}
885-
886840
private async checkoutPullRequestBranch(pullRequest: { number: number; title: string; url: string }): Promise<void> {
887841
if (!pullRequest) {
888842
return;
@@ -963,10 +917,6 @@ export class DashboardWebviewProvider extends WebviewBase {
963917
}
964918

965919
private async openSession(sessionId: string): Promise<void> {
966-
if (!sessionId) {
967-
return;
968-
}
969-
970920
try {
971921
// Open the chat session
972922
await vscode.window.showChatSession('copilot-swe-agent', sessionId, {});
@@ -1076,36 +1026,21 @@ export class DashboardWebviewProvider extends WebviewBase {
10761026
}
10771027
}
10781028

1079-
1080-
/**
1081-
* Determines if a query represents a coding task vs a general question using VS Code's Language Model API
1082-
*/
10831029
private async isCodingTask(query: string): Promise<boolean> {
10841030
return this._taskManager.isCodingTask(query);
10851031
}
10861032

1087-
/**
1088-
* Fallback keyword-based classification when LM API is unavailable
1089-
*/
1090-
/**
1091-
* Shows a quick pick to let user choose between local and remote work
1092-
*/
10931033
private async showWorkModeQuickPick(): Promise<'local' | 'remote' | undefined> {
10941034
return this._taskManager.showWorkModeQuickPick();
10951035
}
10961036

1097-
/**
1098-
* Sets up local workflow: creates branch and opens chat with agent mode
1099-
*/
11001037
private async setupLocalWorkflow(query: string): Promise<void> {
11011038
await this._taskManager.setupNewLocalWorkflow(query);
11021039
}
11031040

1104-
/**
1105-
* Creates a remote background session using the copilot remote agent
1106-
*/
11071041
private async createRemoteBackgroundSession(query: string): Promise<void> {
11081042
await this._taskManager.createRemoteBackgroundSession(query);
1043+
11091044
// Refresh the dashboard to show the new session
11101045
setTimeout(() => {
11111046
this.updateDashboard();

0 commit comments

Comments
 (0)