proxy some SCMProvider features

This commit is contained in:
Joao Moreno
2016-11-30 10:39:19 +01:00
parent 2a13d010f3
commit 867f12a69c
3 changed files with 44 additions and 17 deletions

View File

@@ -35,7 +35,13 @@ export class ExtHostSCM {
// TODO@joao: should pluck all the things out of the provider
this._providers[id] = provider;
this._proxy.$register(id, !!provider.getOriginalResource);
this._proxy.$register(id, {
commitCommand: provider.commitCommand,
clickCommand: provider.clickCommand,
dragCommand: provider.dragCommand,
supportsOriginalResource: !!provider.getOriginalResource
});
return new Disposable(() => {
delete this._providers[id];