Files
vscode-gitlens/src/commands/toggleCodeLens.ts
Eric Amodio 8b0748608d Renames commands/commands to commands/common
Renames quickpicks/quickpicks to quickpicks/common
Moves git quick picks into common and other quick pick files
2017-03-28 16:19:57 -04:00

15 lines
425 B
TypeScript

'use strict';
import { TextEditor, TextEditorEdit } from 'vscode';
import { Commands, EditorCommand } from './common';
import { GitService } from '../gitService';
export class ToggleCodeLensCommand extends EditorCommand {
constructor(private git: GitService) {
super(Commands.ToggleCodeLens);
}
execute(editor: TextEditor, edit: TextEditorEdit) {
return this.git.toggleCodeLens(editor);
}
}