Преглед изворни кода

Stops code lens jumping when editing

main
Eric Amodio пре 7 година
родитељ
комит
846195e378
1 измењених фајлова са 2 додато и 2 уклоњено
  1. +2
    -2
      src/gitCodeLensProvider.ts

+ 2
- 2
src/gitCodeLensProvider.ts Прегледај датотеку

@ -211,8 +211,8 @@ export class GitCodeLensProvider implements CodeLensProvider {
// Make sure there is only 1 lens per line
if (lenses.length && lenses[lenses.length - 1].range.start.line === line.lineNumber) return;
// Anchor the code lens to the end of the line -- so they are somewhat consistently placed
let startChar = line.range.end.character - 1;
// Anchor the code lens to the start of the line -- so that the range won't change with edits (otherwise the code lens will be removed and re-added)
let startChar = 0;
let blameForRangeFn: (() => GitBlameLines | undefined) | undefined;
if (dirty || this._config.codeLens.recentChange.enabled) {

Loading…
Откажи
Сачувај