eventing, naming, fixes, and tests

This commit is contained in:
Johannes Rieken
2020-04-20 11:00:30 +02:00
parent 1e8f97d997
commit 0c0c15ae32
4 changed files with 286 additions and 72 deletions

View File

@@ -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;