mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
only convert a selection when it is a selection (#203423)
re https://github.com/microsoft/vscode-copilot/issues/3758
This commit is contained in:
parent
4da4653519
commit
b10846f1e5
|
@ -84,7 +84,7 @@ export class ExtHostInteractiveEditor implements ExtHostInlineChatShape {
|
|||
|
||||
return {
|
||||
initialRange: v.initialRange ? typeConvert.Range.from(v.initialRange) : undefined,
|
||||
initialSelection: v.initialSelection ? typeConvert.Selection.from(v.initialSelection) : undefined,
|
||||
initialSelection: extHostTypes.Selection.isSelection(v.initialSelection) ? typeConvert.Selection.from(v.initialSelection) : undefined,
|
||||
message: v.message,
|
||||
autoSend: v.autoSend,
|
||||
position: v.position ? typeConvert.Position.from(v.position) : undefined,
|
||||
|
|
Loading…
Reference in a new issue