Skip to content

Commit b4695d4

Browse files
authored
fix(inputPrompter): misplaced disposables argument #3115
Problem: `this.validateEvents` is passed as the `thisArgs` parameter. Solution: pass `undefined` to `thisArgs` parameter, pass `this.validateEvents` to `disposables` parameter.
1 parent 3b510af commit b4695d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/shared/ui/inputPrompter.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,12 @@ export class InputBoxPrompter extends Prompter<string> {
9292

9393
this.inputBox.onDidChangeValue(
9494
value => (this.inputBox.validationMessage = validate(value)),
95+
undefined,
9596
this.validateEvents
9697
)
9798
this.inputBox.onDidAccept(
9899
() => (this.inputBox.validationMessage = validate(this.inputBox.value)),
100+
undefined,
99101
this.validateEvents
100102
)
101103
}

0 commit comments

Comments
 (0)