Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

showInputBox should allow to change contents based on input #3579

Closed
chrisdias opened this issue Mar 1, 2016 · 1 comment
Closed

showInputBox should allow to change contents based on input #3579

chrisdias opened this issue Mar 1, 2016 · 1 comment
Assignees
Labels
api feature-request Request for new features or functionality
Milestone

Comments

@chrisdias
Copy link
Member

vscode.window.showInputBox() lets me accept user input through the command palette, but it is a two step process. I have to first execute a command and then i have to show the input box. Ideally, I should be able to prompt and accept input in one command, much in the way the git branch prompt does:

image

here i'm prompted with "git checkout", if i have a set of branches they are shown in the list, and I can free form type in any text in order to create a new branch.

As an extension author I would love to be able to have a similar model. For example, let's say I want to have a list of tasks and each task can take a parameter.

myextension create thing1
myextension create thing2

in this case i don't want to select "myextension create thing1" and then have an input box. What i want is to be able to say "myextension thing1 thing1's description". This is also similar to the extension install experience where i can say ext install myextension where myextension is free form text.

@chrisdias chrisdias added the feature-request Request for new features or functionality label Mar 1, 2016
@chrisdias chrisdias added this to the March 2016 milestone Mar 1, 2016
@isidorn isidorn modified the milestones: Backlog, March 2016 Mar 15, 2016
@jrieken jrieken added the api label Mar 15, 2016
@jrieken jrieken changed the title Improved command palette input experience showInputBox should allow to change contents based on input Mar 16, 2016
@jrieken
Copy link
Member

jrieken commented Apr 29, 2016

duplicate of #426

@jrieken jrieken closed this as completed Apr 29, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

3 participants