Register listener

This commit is contained in:
Daniel Imms 2024-06-27 10:33:01 -07:00
parent de7738531f
commit 3a8cea9051
No known key found for this signature in database
GPG key ID: 5F0FF45B19E3A5D2

View file

@ -974,7 +974,7 @@ export class Repository implements Disposable {
onDidChangeCountBadge(this.setCountBadge, this, this.disposables);
this.setCountBadge();
window.onDidEndTerminalShellExecution(e => {
this.disposables.push(window.onDidEndTerminalShellExecution(e => {
const [executable, subcommand, ..._args] = e.execution.commandLine.value.split(' ');
if (executable !== 'git' || !e.execution.cwd || !e.execution.cwd.path.startsWith(this.root)) {
return;
@ -987,7 +987,7 @@ export class Repository implements Disposable {
}
}
}
});
}));
}
validateInput(text: string, _: number): SourceControlInputBoxValidation | undefined {