mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 14:31:31 +01:00
Ensure inline chat is started with a good initial selection (#213860)
This commit is contained in:
@@ -69,8 +69,10 @@ export class EditorChatFollowUp implements Command {
|
||||
expand.action.changes.flatMap((c) => c.textChanges)
|
||||
)
|
||||
: expand.range;
|
||||
const initialSelection = initialRange ? new vscode.Selection(initialRange.start, initialRange.end) : undefined;
|
||||
await vscode.commands.executeCommand('vscode.editorChat.start', {
|
||||
initialRange,
|
||||
initialSelection,
|
||||
message,
|
||||
autoSend: true,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user