mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
💥 scm input onDidAccept
This commit is contained in:
@@ -76,6 +76,7 @@ async function init(context: ExtensionContext, disposables: Disposable[]): Promi
|
||||
}
|
||||
}
|
||||
|
||||
scm.inputBox.onDidAccept(commandCenter.commitWithInput, commandCenter, disposables);
|
||||
scm.inputBox.value = await model.getCommitTemplate();
|
||||
}
|
||||
|
||||
|
||||
@@ -50,10 +50,6 @@ export class GitSCMProvider implements SCMProvider {
|
||||
return this.commandCenter.open(resource);
|
||||
}
|
||||
|
||||
acceptChanges(): ProviderResult<void> {
|
||||
return this.commandCenter.commitWithInput();
|
||||
}
|
||||
|
||||
getOriginalResource(uri: Uri): Uri | undefined {
|
||||
if (uri.scheme !== 'file') {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user