scm: bulk resources update

related to #32629
This commit is contained in:
Joao
2017-09-06 10:54:25 +02:00
parent 574660101b
commit bff300a730
4 changed files with 114 additions and 70 deletions

View File

@@ -337,6 +337,11 @@ export type SCMRawResource = [
boolean /*faded*/
];
export type SCMRawResourceGroup = [
number, /*handle*/
SCMRawResource[]
];
export interface MainThreadSCMShape extends IDisposable {
$registerSourceControl(handle: number, id: string, label: string): void;
$updateSourceControl(handle: number, features: SCMProviderFeatures): void;
@@ -345,9 +350,10 @@ export interface MainThreadSCMShape extends IDisposable {
$registerGroup(sourceControlHandle: number, handle: number, id: string, label: string): void;
$updateGroup(sourceControlHandle: number, handle: number, features: SCMGroupFeatures): void;
$updateGroupLabel(sourceControlHandle: number, handle: number, label: string): void;
$updateGroupResourceStates(sourceControlHandle: number, groupHandle: number, resources: SCMRawResource[]): void;
$unregisterGroup(sourceControlHandle: number, handle: number): void;
$updateResourceStates(sourceControlHandle: number, resources: SCMRawResourceGroup[]): void;
$setInputBoxValue(sourceControlHandle: number, value: string): void;
}