-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
VSCodeAPI 'showInformationMessage' do not support newlines. (\n) #7332
Comments
@raphaelsantos are you certain it is supported in vscode? vscode.window.showInformationMessage('t\ne\ns\nt'); Also, looking at their source code and past discussions, it looks like newlines aren't supported: |
@raphaelsantos can you provide an example of a |
Please re-open the issue once the questions have been answered. |
Hi @vince-fugnitto , I'm really sorry for taking all this time to answer. Entering newline with |
No problem, thanks for getting back! |
Fixes #7332 Fixes #7491 The following commit fixes the following issues: - it should now be possible for plugins to call the `showMessage` with newlines when using the `modal` MessageOption`. - the `showMessage` should now support displaying the `isCloseAffordance` MessageType option. - fixes the argument type for `MessageItem`. Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
Fixes #7332 Fixes #7491 The following commit fixes the following issues: - it should now be possible for plugins to call the `showMessage` with newlines when using the `modal` MessageOption`. - the `showMessage` should now support displaying the `isCloseAffordance` MessageType option. - fixes the argument type for `MessageItem`. Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
Description
It should be possible for users to call
showInformationMessage
(VS Code API) with newlines included (\n
). The following does not work for notification messages, but does work when passing MessageOptionmodal
astrue
.Reproduction Steps
showInformationMessage
passingmodal: true
and include newlines in the message.Ex:
OS and Theia version:
10.14.6
0.12.0
The text was updated successfully, but these errors were encountered: