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:
Brian Schlenker
2017-04-02 12:25:56 -07:00
parent 6f42a236d5
commit 66a5bc334f
4 changed files with 13 additions and 2 deletions

View File

@@ -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;