mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-16 08:53:26 +01:00
workaround for https://github.com/microsoft/vscode/issues/116751
This commit is contained in:
@@ -2863,12 +2863,13 @@ export class NotebookCellRange {
|
||||
}
|
||||
|
||||
constructor(start: number, end: number) {
|
||||
if (start < 0) {
|
||||
throw illegalArgument('start must be positive');
|
||||
}
|
||||
if (end < start) {
|
||||
throw illegalArgument('end cannot be smaller than start');
|
||||
}
|
||||
// todo@rebornix
|
||||
// if (start < 0) {
|
||||
// throw illegalArgument('start must be positive');
|
||||
// }
|
||||
// if (end < start) {
|
||||
// throw illegalArgument('end cannot be smaller than start');
|
||||
// }
|
||||
this._start = start;
|
||||
this._end = end;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user