mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-24 09:45:39 -05:00
Adds new CodeLens visibility & location settings
Adds new command to toggle CodeLens on and off when `gitlens.codeLens.visibility` is set to `ondemand`
This commit is contained in:
@@ -154,4 +154,14 @@ export class ToggleBlameCommand extends EditorCommand {
|
||||
.catch(ex => console.error('[GitLens.ToggleBlameCommand]', 'getBlameForLine', ex))
|
||||
.then(blame => this.blameController.toggleBlame(editor, blame && blame.commit.sha));
|
||||
}
|
||||
}
|
||||
|
||||
export 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