mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-17 17:25:51 -05:00
15 lines
427 B
TypeScript
15 lines
427 B
TypeScript
'use strict';
|
|
import { TextEditor, TextEditorEdit } from 'vscode';
|
|
import { Commands, EditorCommand } from './commands';
|
|
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);
|
|
}
|
|
} |