Skip to content

Commit a41db71

Browse files
authored
Merge pull request #528 from microsoft/aamunger/defaultNotebookPort
bring back participant used for inline v1 in notebooks
2 parents fd1a00a + 8827a4e commit a41db71

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
@@ -1316,6 +1316,27 @@
13161316
}
13171317
]
13181318
},
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+
},
13191340
{
13201341
"id": "github.copilot.notebookEditorAgent",
13211342
"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());
@@ -235,6 +236,13 @@ Learn more about [GitHub Copilot](https://docs.github.com/copilot/using-github-c
235236
return defaultAgent;
236237
}
237238

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+
238246
private registerNotebookDefaultAgent(): IDisposable {
239247
const defaultAgent = this.createAgent(notebookEditorAgentName, Intent.notebookEditor);
240248
defaultAgent.iconPath = new vscode.ThemeIcon('copilot');

0 commit comments

Comments
 (0)