From 2130072b97cf8ba9829065c3ab22e97b2ea5c6b5 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Sat, 4 May 2019 04:02:29 -0400 Subject: [PATCH] Removes extra container call --- src/annotations/lineAnnotationController.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/annotations/lineAnnotationController.ts b/src/annotations/lineAnnotationController.ts index 0400f5f..44d11e5 100644 --- a/src/annotations/lineAnnotationController.ts +++ b/src/annotations/lineAnnotationController.ts @@ -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)