Files
vscode-gitlens/src/commands/toggleCodeLens.ts
2017-08-30 12:25:07 -04:00

15 lines
479 B
TypeScript

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