Keep window.showWarningMessage dialog open after clicking specific button #73
-
Hi everyone, I'm sharing here to look for some answers. The context is: I'm triggering a The thing I'm trying to do is: When the user clicks on Is there any way to do that? I know the default behavior is when the user choose any option the message will close, also I couldn't see anything that allows me to change this behavior on the API. At the end of the day I need to put a link or something that allows the user get more information about the message he's receiving, but keeps the message open in order to have the ability to choose "update" or "cancel". Thanks a lot in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
In the Azure extensions we do essentially exactly this: https://github.com/microsoft/vscode-azuretools/blob/main/utils/src/userInput/showWarningMessage.ts The approach is to just reopen the exact same message if the user clicks "Learn More". It looks a little strange, but it gets the job done. |
Beta Was this translation helpful? Give feedback.
In the Azure extensions we do essentially exactly this: https://github.com/microsoft/vscode-azuretools/blob/main/utils/src/userInput/showWarningMessage.ts
The approach is to just reopen the exact same message if the user clicks "Learn More". It looks a little strange, but it gets the job done.