@@ -24,7 +24,7 @@ import { URI } from '../../../../base/common/uri.js';
24
24
import { ServicesAccessor } from '../../../../editor/browser/editorExtensions.js' ;
25
25
import { MarkdownRenderer } from '../../../../editor/browser/widget/markdownRenderer/browser/markdownRenderer.js' ;
26
26
import { localize , localize2 } from '../../../../nls.js' ;
27
- import { Action2 , MenuId , MenuRegistry , registerAction2 } from '../../../../platform/actions/common/actions.js' ;
27
+ import { Action2 , MenuId , registerAction2 } from '../../../../platform/actions/common/actions.js' ;
28
28
import { ICommandService } from '../../../../platform/commands/common/commands.js' ;
29
29
import { ConfigurationTarget , IConfigurationService } from '../../../../platform/configuration/common/configuration.js' ;
30
30
import { Extensions as ConfigurationExtensions , IConfigurationRegistry } from '../../../../platform/configuration/common/configurationRegistry.js' ;
@@ -988,7 +988,6 @@ export class ChatSetupContribution extends Disposable implements IWorkbenchContr
988
988
989
989
this . registerSetupAgents ( context , controller ) ;
990
990
this . registerActions ( context , requests , controller ) ;
991
- this . registerMenus ( ) ;
992
991
this . registerUrlLinkHandler ( ) ;
993
992
}
994
993
@@ -1294,38 +1293,6 @@ export class ChatSetupContribution extends Disposable implements IWorkbenchContr
1294
1293
registerAction2 ( EnableOveragesAction ) ;
1295
1294
}
1296
1295
1297
- private registerMenus ( ) : void {
1298
- const menuContext = ContextKeyExpr . and (
1299
- // TODO@bpasero this needs to be revisited when the Copilot
1300
- // extension contributes this OOTB where this menu is also
1301
- // defined.
1302
- ChatContextKeys . Setup . installed . negate ( ) ,
1303
- ChatContextKeys . Setup . hidden . negate ( ) ,
1304
- ChatContextKeys . Setup . disabled . negate ( )
1305
- ) ;
1306
-
1307
- MenuRegistry . appendMenuItem ( MenuId . ExplorerContext , {
1308
- submenu : MenuId . ChatExplorerMenu ,
1309
- group : '5_copilot' ,
1310
- title : localize ( 'title4' , "Copilot" ) ,
1311
- when : menuContext
1312
- } ) ;
1313
-
1314
- MenuRegistry . appendMenuItem ( MenuId . EditorContext , {
1315
- submenu : MenuId . ChatTextEditorMenu ,
1316
- group : '1_copilot' ,
1317
- title : localize ( 'title4' , "Copilot" ) ,
1318
- when : menuContext
1319
- } ) ;
1320
-
1321
- MenuRegistry . appendMenuItem ( MenuId . TerminalInstanceContext , {
1322
- submenu : MenuId . ChatTerminalMenu ,
1323
- group : '2_copilot' ,
1324
- title : localize ( 'title4' , "Copilot" ) ,
1325
- when : menuContext
1326
- } ) ;
1327
- }
1328
-
1329
1296
private registerUrlLinkHandler ( ) : void {
1330
1297
this . _register ( ExtensionUrlHandlerOverrideRegistry . registerHandler ( {
1331
1298
canHandleURL : url => {
0 commit comments