mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
proxy some SCMProvider features
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user