'Vscode showInformationMessage message disappears, is there a timer

I am faced with auto dismissing of my messages. For example I call vscode.window.showInformationMessage and after a few seconds this message disappears. I can't find any info about options to control this, like with a timer, and setStatusBarMessage doesn't display my message. Please help me, guys.



Solution 1:[1]

if user input is necessary,try to use modal like this

vscode.window.showInformationMessage('test',{modal: true},'yes','no');

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 yu3wen