mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
Add noValuePreselect option to showInputBox
Allow extensions to decide if a value passed to vscode.window.showInputBox should start selected or not. Defaults to current behavior as to not break the experience of existing extensions. Fixes https://github.com/Microsoft/vscode/issues/10582.
This commit is contained in:
@@ -82,6 +82,7 @@ export class MainThreadQuickOpen extends MainThreadQuickOpenShape {
|
||||
if (options) {
|
||||
inputOptions.password = options.password;
|
||||
inputOptions.placeHolder = options.placeHolder;
|
||||
inputOptions.noValuePreselect = options.noValuePreselect;
|
||||
inputOptions.prompt = options.prompt;
|
||||
inputOptions.value = options.value;
|
||||
inputOptions.ignoreFocusLost = options.ignoreFocusOut;
|
||||
|
||||
Reference in New Issue
Block a user