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

Disabling editor.semanticHighlighting disabled ALL syntax highlighting for C# in polyglot #3593

Open
5 of 16 tasks
mika76 opened this issue Jul 4, 2024 · 0 comments
Open
5 of 16 tasks

Comments

@mika76
Copy link

mika76 commented Jul 4, 2024

Describe the bug

I have been struggling to find out why my syntax highligting does not work for c#. I create a branch new polyglot .dib notebook, choose C#, start typing in a cell and there is no syntax highlighting.

I though let me check if it's my extensions, so I create a new clean profile in vscode with no extensions and started adding them one by one (polyglot being the first) - and lo and behold the sytax highlighting started working. Enabling more and more extensions didn't seem to turn it off, so I though maybe it's a custom setting. I looked into my original user settings and noticed "editor.semanticHighlighting.enabled": false, - I switched this to true and now syntax highlight works fine.

Looking into https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide this switch is not supposed to turn off ALL syntax highlighting.

I think this is related to #3549, #2683 and maybe #2827,

Please complete the following:

Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ):

  • OS
    • Windows 11
    • [X ] Windows 10
    • macOS
    • Linux (Please specify distro)
    • iOS
    • Android
  • Browser
    • Chrome
    • Edge
    • Firefox
    • Safari
  • Frontend
    • Jupyter Notebook
    • Jupyter Lab
    • nteract
    • Visual Studio Code
    • Visual Studio Code Insiders
    • Visual Studio
    • Other (please specify)

Screenshots

"editor.semanticHighlighting.enabled": false
image

"editor.semanticHighlighting.enabled": true
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

1 participant