We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cee2da1 commit 658a1d6Copy full SHA for 658a1d6
src/commands/gitCommands.ts
@@ -416,10 +416,14 @@ export class GitCommandsCommand extends Command {
416
417
input.show();
418
419
- // Manually trigger `onDidChangeValue`, because the InputBox seems to fail to call it properly
+ // Manually trigger `onDidChangeValue`, because the InputBox fails to call it if the value is set before it is shown
420
if (step.value != null) {
421
// HACK: This is fragile!
422
- (input as any)._onDidChangeValueEmitter?.fire(input.value);
+ try {
423
+ (input as any)._onDidChangeValueEmitter?.fire(input.value);
424
+ } catch {
425
+ debugger;
426
+ }
427
}
428
});
429
} finally {
0 commit comments