mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-02-12 11:08:34 -05:00
15 lines
479 B
TypeScript
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);
|
|
}
|
|
} |