scm: remove global input

This commit is contained in:
Joao Moreno
2017-08-22 11:11:28 +02:00
parent 32f721f81a
commit a1ec10d76f
9 changed files with 166 additions and 132 deletions

View File

@@ -33,7 +33,7 @@ export class ExtHostSCMInputBox {
}
set value(value: string) {
this._proxy.$setInputBoxValue(value);
this._proxy.$setInputBoxValue(this._sourceControlHandle, value);
this.updateValue(value);
}
@@ -43,7 +43,7 @@ export class ExtHostSCMInputBox {
return this._onDidChange.event;
}
constructor(private _proxy: MainThreadSCMShape) {
constructor(private _proxy: MainThreadSCMShape, private _sourceControlHandle: number) {
// noop
}
@@ -232,7 +232,7 @@ class ExtHostSourceControl implements vscode.SourceControl {
private _id: string,
private _label: string,
) {
this._inputBox = new ExtHostSCMInputBox(this._proxy);
this._inputBox = new ExtHostSCMInputBox(this._proxy, this._handle);
this._proxy.$registerSourceControl(this._handle, _id, _label);
}