mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-29 04:53:33 +01:00
automatically convert notebook range to its internal type, https://github.com/microsoft/vscode/issues/122877
This commit is contained in:
@@ -166,12 +166,12 @@ export class ExtHostCommands implements ExtHostCommandsShape {
|
||||
const toArgs = cloneAndChange(args, function (value) {
|
||||
if (value instanceof extHostTypes.Position) {
|
||||
return extHostTypeConverter.Position.from(value);
|
||||
}
|
||||
if (value instanceof extHostTypes.Range) {
|
||||
} else if (value instanceof extHostTypes.Range) {
|
||||
return extHostTypeConverter.Range.from(value);
|
||||
}
|
||||
if (value instanceof extHostTypes.Location) {
|
||||
} else if (value instanceof extHostTypes.Location) {
|
||||
return extHostTypeConverter.location.from(value);
|
||||
} else if (extHostTypes.NotebookRange.isNotebookRange(value)) {
|
||||
return extHostTypeConverter.NotebookRange.from(value);
|
||||
}
|
||||
if (!Array.isArray(value)) {
|
||||
return value;
|
||||
|
||||
Reference in New Issue
Block a user