@@ -7,16 +7,13 @@ import * as vscode from 'vscode';
77import { MAX_LINE_LENGTH } from './util' ;
88import { CREATE_ISSUE_TRIGGERS , ISSUES_SETTINGS_NAMESPACE } from '../common/settingKeys' ;
99import { escapeRegExp } from '../common/utils' ;
10- import { CopilotRemoteAgentManager } from '../github/copilotRemoteAgent' ;
1110import { ISSUE_OR_URL_EXPRESSION } from '../github/utils' ;
1211
1312export class IssueTodoProvider implements vscode . CodeActionProvider {
1413 private expression : RegExp | undefined ;
1514
1615 constructor (
17- context : vscode . ExtensionContext ,
18- private copilotRemoteAgentManager : CopilotRemoteAgentManager
19- ) {
16+ context : vscode . ExtensionContext ) {
2017 context . subscriptions . push (
2118 vscode . workspace . onDidChangeConfiguration ( ( ) => {
2219 this . updateTriggers ( ) ;
@@ -76,21 +73,6 @@ export class IssueTodoProvider implements vscode.CodeActionProvider {
7673 arguments : [ { document, lineNumber, line, insertIndex, range } ] ,
7774 } ;
7875 codeActions . push ( createIssueAction ) ;
79-
80- // Start Coding Agent Session action (if copilot manager is available)
81- if ( this . copilotRemoteAgentManager ) {
82- const startAgentAction : vscode . CodeAction = new vscode . CodeAction (
83- vscode . l10n . t ( 'Delegate to agent' ) ,
84- vscode . CodeActionKind . QuickFix ,
85- ) ;
86- startAgentAction . ranges = [ new vscode . Range ( lineNumber , search , lineNumber , search + match [ 0 ] . length ) ] ;
87- startAgentAction . command = {
88- title : vscode . l10n . t ( 'Delegate to agent' ) ,
89- command : 'issue.startCodingAgentFromTodo' ,
90- arguments : [ { document, lineNumber, line, insertIndex, range } ] ,
91- } ;
92- codeActions . push ( startAgentAction ) ;
93- }
9476 break ;
9577 }
9678 lineNumber ++ ;
0 commit comments