mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-23 17:26:14 -05:00
Reworks commanding structure for less redundancy
Adds command args copying when needed
This commit is contained in:
@@ -20,6 +20,8 @@ export class ToggleLineBlameCommand extends EditorCommand {
|
||||
|
||||
try {
|
||||
if (args.type === undefined) {
|
||||
args = { ...args };
|
||||
|
||||
const cfg = workspace.getConfiguration().get<IConfig>(ExtensionKey)!;
|
||||
args.type = cfg.blame.line.annotationType;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user