PrefixSumComputer renames.

This commit is contained in:
Henning Dieterichs
2021-06-11 16:06:17 +02:00
parent ae1f358300
commit 261d075b4c
9 changed files with 75 additions and 75 deletions

View File

@@ -143,7 +143,7 @@ export class ExtHostDocumentData extends MirrorTextModel {
private _offsetAt(position: vscode.Position): number {
position = this._validatePosition(position);
this._ensureLineStarts();
return this._lineStarts!.getAccumulatedValue(position.line - 1) + position.character;
return this._lineStarts!.getPrefixSum(position.line - 1) + position.character;
}
private _positionAt(offset: number): vscode.Position {