From 9d67f5ace6ae97d1f2076372ec27072d15c52de2 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Mon, 1 Apr 2019 05:00:17 -0400 Subject: [PATCH] Removes duplicate toggle line blame command --- src/commands/toggleLineBlame.ts | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 src/commands/toggleLineBlame.ts diff --git a/src/commands/toggleLineBlame.ts b/src/commands/toggleLineBlame.ts deleted file mode 100644 index e27cbd1..0000000 --- a/src/commands/toggleLineBlame.ts +++ /dev/null @@ -1,24 +0,0 @@ -'use strict'; -import { TextEditor, Uri, window } from 'vscode'; -import { Container } from '../container'; -import { Logger } from '../logger'; -import { ActiveEditorCommand, command, Commands } from './common'; - -@command() -export class ToggleLineBlameCommand extends ActiveEditorCommand { - constructor() { - super(Commands.ToggleLineBlame); - } - - execute(editor: TextEditor, uri?: Uri) { - try { - return Container.lineAnnotations.toggle(editor); - } - catch (ex) { - Logger.error(ex, 'ToggleLineBlameCommand'); - return window.showErrorMessage( - 'Unable to toggle line blame annotations. See output channel for more details' - ); - } - } -}