Browse Source

Removes extra container call

main
Eric Amodio 5 years ago
parent
commit
2130072b97
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      src/annotations/lineAnnotationController.ts

+ 1
- 3
src/annotations/lineAnnotationController.ts View File

@ -178,8 +178,6 @@ export class LineAnnotationController implements Disposable {
cc.exitDetails = ` ${GlyphChars.Dot} line(s)=${lines.join()}`;
}
const scrollable = Container.config.currentLine.scrollable;
const decorations = [];
for (const l of lines) {
const state = Container.lineTracker.getState(l);
@ -189,7 +187,7 @@ export class LineAnnotationController implements Disposable {
state.commit,
cfg.format,
cfg.dateFormat === null ? Container.config.defaultDateFormat : cfg.dateFormat,
scrollable
cfg.scrollable
) as DecorationOptions;
decoration.range = editor.document.validateRange(
new Range(l, Number.MAX_SAFE_INTEGER, l, Number.MAX_SAFE_INTEGER)

Loading…
Cancel
Save