SCM - input box value provider rendering (#198923)

* Initial implementation

* Remove debug messages

* Implementation using a custom ActionViewItem

* Switched to using a custom action along with the custom action view item

* Switch to using arrays

* Refactored code (single provider is working)

* Add ActionRunner to options

* WIP - saving my work

* Refactor things to support one provider

* Add setting to enable/disable input action button

* Add sourceControlId to the proposed API

* Fix issue related to enablement

* Remove code that is not in scope

* Have the old action bar work with the setting

* Remove code that was commented out

* Add extension API changes

* Update extensions/git/src/commitMessageProvider.ts

Co-authored-by: João Moreno <joao.moreno@microsoft.com>

* Fix compilation errors

---------

Co-authored-by: João Moreno <joao.moreno@microsoft.com>
This commit is contained in:
Ladislau Szomoru
2023-11-23 16:39:53 +01:00
committed by GitHub
parent f860fcf110
commit a776d5fe0a
16 changed files with 245 additions and 32 deletions

View File

@@ -1171,9 +1171,9 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
createSourceControl(id: string, label: string, rootUri?: vscode.Uri) {
return extHostSCM.createSourceControl(extension, id, label, rootUri);
},
registerSourceControlInputBoxValueProvider(provider: vscode.SourceControlInputBoxValueProvider): vscode.Disposable {
registerSourceControlInputBoxValueProvider(sourceControlId: string, provider: vscode.SourceControlInputBoxValueProvider): vscode.Disposable {
checkProposedApiEnabled(extension, 'scmInputBoxValueProvider');
return extHostSCM.registerSourceControlInputBoxValueProvider(extension, provider);
return extHostSCM.registerSourceControlInputBoxValueProvider(extension, sourceControlId, provider);
}
};