mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
PrefixSumComputer renames.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user