mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 01:29:04 +01:00
eventing, naming, fixes, and tests
This commit is contained in:
@@ -181,6 +181,10 @@ export class ExtHostDocumentData extends MirrorTextModel {
|
||||
throw new Error('Invalid argument');
|
||||
}
|
||||
|
||||
if (this._lines.length === 0) {
|
||||
return position.with(0, 0);
|
||||
}
|
||||
|
||||
let { line, character } = position;
|
||||
let hasChanged = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user