Przeglądaj źródła

Adds protection if hack breaks

main
Eric Amodio 2 lat temu
rodzic
commit
4be5db11e8
1 zmienionych plików z 2 dodań i 2 usunięć
  1. +2
    -2
      src/commands/gitCommands.ts

+ 2
- 2
src/commands/gitCommands.ts Wyświetl plik

@ -419,7 +419,7 @@ export class GitCommandsCommand extends Command {
// Manually trigger `onDidChangeValue`, because the InputBox seems to fail to call it properly
if (step.value != null) {
// HACK: This is fragile!
(input as any)._onDidChangeValueEmitter.fire(input.value);
(input as any)._onDidChangeValueEmitter?.fire(input.value);
}
});
} finally {
@ -786,7 +786,7 @@ export class GitCommandsCommand extends Command {
if (step.value != null && selectValueWhenShown) {
// HACK: This is fragile!
try {
(quickpick as any)._onDidChangeValueEmitter.fire(quickpick.value);
(quickpick as any)._onDidChangeValueEmitter?.fire(quickpick.value);
} catch {
debugger;
}

Ładowanie…
Anuluj
Zapisz