File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed
src/extension/conversation/vscode-node Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 1316
1316
}
1317
1317
]
1318
1318
},
1319
+ {
1320
+ "id" : " github.copilot.notebook" ,
1321
+ "name" : " GitHubCopilot" ,
1322
+ "fullName" : " GitHub Copilot" ,
1323
+ "description" : " %copilot.description%" ,
1324
+ "isDefault" : true ,
1325
+ "locations" : [
1326
+ " notebook"
1327
+ ],
1328
+ "when" : " !config.inlineChat.enableV2 && !config.github.copilot.chat.advanced.inlineChat2" ,
1329
+ "commands" : [
1330
+ {
1331
+ "name" : " fix" ,
1332
+ "description" : " %copilot.workspace.fix.description%"
1333
+ },
1334
+ {
1335
+ "name" : " explain" ,
1336
+ "description" : " %copilot.workspace.explain.description%"
1337
+ }
1338
+ ]
1339
+ },
1319
1340
{
1320
1341
"id" : " github.copilot.notebookEditorAgent" ,
1321
1342
"name" : " GitHubCopilot" ,
Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ class ChatAgents implements IDisposable {
81
81
this . _disposables . add ( this . registerEditingAgentEditor ( ) ) ;
82
82
this . _disposables . add ( this . registerEditsAgent ( ) ) ;
83
83
this . _disposables . add ( this . registerEditorDefaultAgent ( ) ) ;
84
+ this . _disposables . add ( this . registerNotebookEditorDefaultAgent ( ) ) ;
84
85
this . _disposables . add ( this . registerNotebookDefaultAgent ( ) ) ;
85
86
this . _disposables . add ( this . registerWorkspaceAgent ( ) ) ;
86
87
this . _disposables . add ( this . registerVSCodeAgent ( ) ) ;
@@ -235,6 +236,13 @@ Learn more about [GitHub Copilot](https://docs.github.com/copilot/using-github-c
235
236
return defaultAgent ;
236
237
}
237
238
239
+ private registerNotebookEditorDefaultAgent ( ) : IDisposable {
240
+ const defaultAgent = this . createAgent ( 'notebook' , Intent . Editor ) ;
241
+ defaultAgent . iconPath = new vscode . ThemeIcon ( 'copilot' ) ;
242
+
243
+ return defaultAgent ;
244
+ }
245
+
238
246
private registerNotebookDefaultAgent ( ) : IDisposable {
239
247
const defaultAgent = this . createAgent ( notebookEditorAgentName , Intent . notebookEditor ) ;
240
248
defaultAgent . iconPath = new vscode . ThemeIcon ( 'copilot' ) ;
You can’t perform that action at this time.
0 commit comments