Skip to content

Commit 012aa8f

Browse files
authored
bring back participant used for inline v1 in notebooks (#527)
1 parent eda2b05 commit 012aa8f

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

package.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,6 +1317,27 @@
13171317
}
13181318
]
13191319
},
1320+
{
1321+
"id": "github.copilot.notebook",
1322+
"name": "GitHubCopilot",
1323+
"fullName": "GitHub Copilot",
1324+
"description": "%copilot.description%",
1325+
"isDefault": true,
1326+
"locations": [
1327+
"notebook"
1328+
],
1329+
"when": "!config.inlineChat.enableV2 && !config.github.copilot.chat.advanced.inlineChat2",
1330+
"commands": [
1331+
{
1332+
"name": "fix",
1333+
"description": "%copilot.workspace.fix.description%"
1334+
},
1335+
{
1336+
"name": "explain",
1337+
"description": "%copilot.workspace.explain.description%"
1338+
}
1339+
]
1340+
},
13201341
{
13211342
"id": "github.copilot.notebookEditorAgent",
13221343
"name": "GitHubCopilot",

src/extension/conversation/vscode-node/chatParticipants.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ class ChatAgents implements IDisposable {
8181
this._disposables.add(this.registerEditingAgentEditor());
8282
this._disposables.add(this.registerEditsAgent());
8383
this._disposables.add(this.registerEditorDefaultAgent());
84+
this._disposables.add(this.registerNotebookEditorDefaultAgent());
8485
this._disposables.add(this.registerNotebookDefaultAgent());
8586
this._disposables.add(this.registerWorkspaceAgent());
8687
this._disposables.add(this.registerVSCodeAgent());
@@ -234,6 +235,13 @@ Learn more about [GitHub Copilot](https://docs.github.com/copilot/using-github-c
234235
return defaultAgent;
235236
}
236237

238+
private registerNotebookEditorDefaultAgent(): IDisposable {
239+
const defaultAgent = this.createAgent('notebook', Intent.Editor);
240+
defaultAgent.iconPath = new vscode.ThemeIcon('copilot');
241+
242+
return defaultAgent;
243+
}
244+
237245
private registerNotebookDefaultAgent(): IDisposable {
238246
const defaultAgent = this.createAgent(notebookEditorAgentName, Intent.notebookEditor);
239247
defaultAgent.iconPath = new vscode.ThemeIcon('copilot');

0 commit comments

Comments
 (0)