mirror of
https://github.com/Microsoft/vscode
synced 2024-09-19 02:26:04 +00:00
fix broken SCM view
This commit is contained in:
parent
d9fa2b1213
commit
ac035214a7
|
@ -206,6 +206,7 @@ export class ExtHostSCMInputBox implements vscode.SourceControlInputBox {
|
|||
}
|
||||
|
||||
set value(value: string) {
|
||||
value = value ?? '';
|
||||
this._proxy.$setInputBoxValue(this._sourceControlHandle, value);
|
||||
this.updateValue(value);
|
||||
}
|
||||
|
|
|
@ -147,6 +147,7 @@ class SCMInput implements ISCMInput {
|
|||
if (key) {
|
||||
try {
|
||||
history = JSON.parse(this.storageService.get(key, StorageScope.GLOBAL, '')).history;
|
||||
history = history?.filter(s => !!s);
|
||||
} catch {
|
||||
// noop
|
||||
}
|
||||
|
@ -171,7 +172,7 @@ class SCMInput implements ISCMInput {
|
|||
return;
|
||||
}
|
||||
|
||||
const history = [...this.historyNavigator];
|
||||
const history = [...this.historyNavigator].filter(s => !!s);
|
||||
|
||||
if (history.length === 0 || (history.length === 1 && history[0] === '')) {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue