mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-15 09:35:42 -05:00
Fixes another off-by-one issue when diffing with caching
Refactored commands and blame annotations
This commit is contained in:
15
src/commands/toggleCodeLens.ts
Normal file
15
src/commands/toggleCodeLens.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
'use strict'
|
||||
import {TextEditor, TextEditorEdit} from 'vscode';
|
||||
import {EditorCommand} from './commands';
|
||||
import {Commands} from '../constants';
|
||||
import GitProvider from '../gitProvider';
|
||||
|
||||
export default class ToggleCodeLensCommand extends EditorCommand {
|
||||
constructor(private git: GitProvider) {
|
||||
super(Commands.ToggleCodeLens);
|
||||
}
|
||||
|
||||
execute(editor: TextEditor, edit: TextEditorEdit) {
|
||||
return this.git.toggleCodeLens(editor);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user