From 5f2f20bf255fd2b343ade827efaa0cbf2eaec849 Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Thu, 29 Jan 2026 12:45:15 +0100 Subject: [PATCH] Enhance chat commands: add review command and refine conditions for explain command (#3270) https://github.com/microsoft/vscode/issues/290828 --- extensions/copilot/package.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/extensions/copilot/package.json b/extensions/copilot/package.json index bc8dd34ea39..c356b30c906 100644 --- a/extensions/copilot/package.json +++ b/extensions/copilot/package.json @@ -4389,8 +4389,13 @@ "chat/editor/inlineGutter": [ { "command": "github.copilot.chat.explain", - "when": "!github.copilot.interactiveSession.disabled", + "when": "!github.copilot.interactiveSession.disabled && editor.hasSelection", "group": "2_chat@2" + }, + { + "command": "github.copilot.chat.review", + "when": "!github.copilot.interactiveSession.disabled && editor.hasSelection && config.github.copilot.chat.reviewSelection.enabled", + "group": "2_chat@3" } ], "chat/input/editing/sessionToolbar": [