mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-02-11 10:38:33 -05:00
Updates to latest vscode extension template
Removes typings (using npm instead) Fixes some promise catches
This commit is contained in:
@@ -21,8 +21,8 @@ export default class ToggleBlameCommand extends EditorCommand {
|
||||
}
|
||||
|
||||
return this.git.getBlameForLine(uri.fsPath, editor.selection.active.line)
|
||||
.catch(ex => console.error('[GitLens.ToggleBlameCommand]', `getBlameForLine(${editor.selection.active.line})`, ex))
|
||||
.then(blame => this.blameController.toggleBlameAnnotation(editor, blame && blame.commit.sha));
|
||||
.then(blame => this.blameController.toggleBlameAnnotation(editor, blame && blame.commit.sha))
|
||||
.catch(ex => console.error('[GitLens.ToggleBlameCommand]', `getBlameForLine(${editor.selection.active.line})`, ex));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user