fix compilos and adopt proposed api usage, #10266

This commit is contained in:
Johannes Rieken
2020-01-16 17:52:11 +01:00
parent 4f7f8587d1
commit 430de16fef
5 changed files with 9 additions and 11 deletions

View File

@@ -28,7 +28,7 @@ class JsDocCompletionItem extends vscode.CompletionItem {
const suffix = line.slice(position.character).match(/^\s*\**\//);
const start = position.translate(0, prefix ? -prefix[0].length : 0);
const range = new vscode.Range(start, position.translate(0, suffix ? suffix[0].length : 0));
this.range2 = { inserting: range, replacing: range };
this.range = <any>{ inserting: range, replacing: range };
}
}