-
Notifications
You must be signed in to change notification settings - Fork 163
special characters (<,>,&) not rendered correctly in intellisense preview #479
Comments
I'm seeing this on vscode 1.30.1, I'm unsure if this is definite, as I'm a user of vscode and not an extension developer, but it's likely as installing vscode v1.29 fixes the issue. |
I believe this is caused upstream by microsoft/vscode@aab56e9#diff-2ecd3e3a8782a731cedec4ea62cf96c6R232. @sandy081, who authored the change - we're using backticks in our diagnostic messages for types, which can have special characters such as |
Created microsoft/vscode#65956 to track and fix this |
@sandy081 thanks! |
@Xanewok Can you help me in reproducing this issue by providing a sample that creates a diagnostic message with above special characters? |
try this-
produces the following output-
|
@danieleades Thanks. But I am asking for sample extension code that can be used to repro this. Means -> Code to create a diagnostic with such message. |
Pushed a barebones extension, the offending diagnostic message is here: https://github.com/Xanewok/vscode-diagnostic-repro/blob/a732475fff1b9bd7970f7fdea81b5c9e5c57d483/src/extension.ts#L10. Steps to run: $ git clone https://github.com/Xanewok/vscode-diagnostic-repro.git
$ code ./vscode-diagnostic-repro
# Run the extension with F5, notice dummy diagnostic in the first line in every opened file |
@Xanewok Thanks for the sample. |
Another example of intellisense breaking is when using bit shift operator << it thinks its started a generic type and hilghts all of your code green till it encouters the next >. I have been working around it by putting a comment after it with a //> in it. |
FWIW, I'm also seeing the same in the Elm plugin. Did Code change something about how it expects to be handed data around this recently? |
Fixed by microsoft/vscode#65956: Updating to latest VS Code (the November 2018 Recovery 2 release) should clear this up for you. |
Thanks for the report! I'll close this then. |
When hovering over issues in the code, the intellisense popup displays some information and the relevant compiler warning. '<', '>', and '&' characters are not rendered properly.
current output-
note: expected type std::option::Option<std::string::String> found type std::option::Option<&std::string::String>
expected output-
note: expected type std::option::Option<std::string::String> found type std::option::Option<&std::string::String>
vscode: 1.31.0-insider
rust extension: 0.5.3
rustc: 1.33.0-nightly (it occurs on stable and beta also)
I have tried reinstalling the extension, clearing out ~/.vscode/extensions, apt uninstall --purge code-insiders.
The text was updated successfully, but these errors were encountered: