🐛 remember the last scm provider per workspace

fixes #23446
This commit is contained in:
Joao Moreno
2017-03-30 21:33:30 +02:00
parent eb5f2ccf42
commit b32988a1fd
6 changed files with 38 additions and 31 deletions

View File

@@ -24,7 +24,7 @@ class MainThreadSCMResourceGroup implements ISCMResourceGroup {
public provider: ISCMProvider,
public features: SCMGroupFeatures,
public label: string,
public contextKey: string,
public id: string,
public resources: ISCMResource[]
) { }
@@ -76,7 +76,7 @@ class MainThreadSCMProvider implements ISCMProvider {
get handle(): number { return this._handle; }
get label(): string { return this._label; }
get contextKey(): string { return this._id; }
get id(): string { return this._id; }
get commitTemplate(): string | undefined { return this.features.commitTemplate; }
get acceptInputCommand(): Command | undefined { return this.features.acceptInputCommand; }