Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dialog box in VS code extension

I want to create the dialog/modal window in vs code. How to create it? I have tried using web view but not got successes. Can any one help me?

Thanks in advance.enter image description here

like image 974
Dipak Jadhav Avatar asked Feb 14 '26 04:02

Dipak Jadhav


1 Answers

It's not possible to show more than a simple input or yes/no dialog in VS Code. This is an IDE focused on editing code, not creating entire workflows.

Hence the only way to accomplish a wizard like style is to implement that yourself using a webview (as mentioned a few times in the comments). However, webviews are normal tabs, not modal dialogs, which is all what you can get.

On the other hand, it's not really a limitation if the user can switch to other places in VS Code while running your wizard. The webview is in itself modal and you cannot do anything else in that webview while the wizard is running.

And finally: modal dialogs are considered problematic UI, as they force the user into some special mode, which is often counter productive. Which means, they should be used with great care.

like image 52
Mike Lischke Avatar answered Feb 20 '26 08:02

Mike Lischke



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!