Skip to content
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

Weird syntax highlighting in interpolated strings #2037

Open
zbiggs1 opened this issue Sep 4, 2024 · 3 comments
Open

Weird syntax highlighting in interpolated strings #2037

zbiggs1 opened this issue Sep 4, 2024 · 3 comments

Comments

@zbiggs1
Copy link

zbiggs1 commented Sep 4, 2024

Describe the bug

The syntax highlighting with variables in interpolated strings seems to be messed up. I tried changing themes to see if that was the issue but it had no effect. Not sure if this is just how the design is or if it is a bug.

Steps to reproduce

See screenshots for example.

Expected behaviour

Screenshot of Jetbrains Rider interpolated string highlighting
image

Screenshots

Screenshot of VS code with Ionide for F# extension and Rider Dark Theme
image
VS code and dark modern theme
image

Machine info

  • OS: Windows 11 Pro Version 23H2 (OS Build 22631.4037)
  • .NET SDK version: 8.0.401
  • Ionide version: v7.21.0
@baronfel
Copy link
Contributor

baronfel commented Sep 4, 2024

Can you invoke the "Inspect tokens and scopes" command from the palette and hover over the areas that aren't colorized (so {name}, \n, .Result, etc and see what tokens and scopes VSCode reports here? Ionide broadly just uses the scopes reported by the compiler, so if those areas aren't getting tagged correctly that could be a compiler bug.

@zbiggs1
Copy link
Author

zbiggs1 commented Sep 4, 2024

image
image
image

@zbiggs1
Copy link
Author

zbiggs1 commented Sep 4, 2024

I realized that with the dark modern the variables and \n are correct it's just the parentheses on methods and the .Result after those parentheses. I think that the others like the \n and variable names are a theme issue.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants