microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.01k stars 29.2k forks source link

Cannot remove default prompt on inputBox #226100

Open FloppyDisco opened 2 months ago

FloppyDisco commented 2 months ago

Does this issue occur when all extensions are disabled?: Yes/No

Steps to Reproduce:

  1. createInputBox
  2. inputBox.prompt = "new prompt"

no matter what you set the prompt to, or how long the prompt gets the default message "press 'enter' to confirm, or 'escape' to cancel" still appears in parentheses.

i would like to be able to remove this so that i can display a custom message with my own keybindings.

link to discussion: https://github.com/microsoft/vscode-discussions/discussions/1435#discussion-7074932

TylerLeonhardt commented 2 months ago

How would you want your users interact with your input box?

FloppyDisco commented 2 months ago

How would you want your users interact with your input box?

it would be better to have the ability to put a completely custom message. For this particular case. I just want to change the description of what the enter button does. In my case, it selects the previous action instead of the current action.

TylerLeonhardt commented 4 weeks ago

We'd need API for this, the text is there so that users always know what their options are so we don't get issues saying: "how do I dismiss/accept this input?"

vs-code-engineering[bot] commented 4 weeks ago

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

FloppyDisco commented 3 weeks ago

We'd need API for this, the text is there so that users always know what their options are so we don't get issues saying: "how do I dismiss/accept this input?"

that is perfectly acceptable for showQuickInput, but i feel like the purpose of createQuickInput is to give the developer more autonomy.