From 8827a4eba0d0e32fc7836f93a056a81b2c9d63fa Mon Sep 17 00:00:00 2001 From: amunger <2019016+amunger@users.noreply.github.com> Date: Fri, 8 Aug 2025 13:06:15 -0700 Subject: [PATCH] bring back participant used for inline v1 in notebooks --- package.json | 21 +++++++++++++++++++ .../vscode-node/chatParticipants.ts | 8 +++++++ 2 files changed, 29 insertions(+) diff --git a/package.json b/package.json index 5ada805bc..194d20f58 100644 --- a/package.json +++ b/package.json @@ -1316,6 +1316,27 @@ } ] }, +{ + "id": "github.copilot.notebook", + "name": "GitHubCopilot", + "fullName": "GitHub Copilot", + "description": "%copilot.description%", + "isDefault": true, + "locations": [ + "notebook" + ], + "when": "!config.inlineChat.enableV2 && !config.github.copilot.chat.advanced.inlineChat2", + "commands": [ + { + "name": "fix", + "description": "%copilot.workspace.fix.description%" + }, + { + "name": "explain", + "description": "%copilot.workspace.explain.description%" + } + ] + }, { "id": "github.copilot.notebookEditorAgent", "name": "GitHubCopilot", diff --git a/src/extension/conversation/vscode-node/chatParticipants.ts b/src/extension/conversation/vscode-node/chatParticipants.ts index 3aaffae3c..04142a5d9 100644 --- a/src/extension/conversation/vscode-node/chatParticipants.ts +++ b/src/extension/conversation/vscode-node/chatParticipants.ts @@ -81,6 +81,7 @@ class ChatAgents implements IDisposable { this._disposables.add(this.registerEditingAgentEditor()); this._disposables.add(this.registerEditsAgent()); this._disposables.add(this.registerEditorDefaultAgent()); + this._disposables.add(this.registerNotebookEditorDefaultAgent()); this._disposables.add(this.registerNotebookDefaultAgent()); this._disposables.add(this.registerWorkspaceAgent()); this._disposables.add(this.registerVSCodeAgent()); @@ -235,6 +236,13 @@ Learn more about [GitHub Copilot](https://docs.github.com/copilot/using-github-c return defaultAgent; } + private registerNotebookEditorDefaultAgent(): IDisposable { + const defaultAgent = this.createAgent('notebook', Intent.Editor); + defaultAgent.iconPath = new vscode.ThemeIcon('copilot'); + + return defaultAgent; + } + private registerNotebookDefaultAgent(): IDisposable { const defaultAgent = this.createAgent(notebookEditorAgentName, Intent.notebookEditor); defaultAgent.iconPath = new vscode.ThemeIcon('copilot');