interactive icon indicating copy to clipboard operation
interactive copied to clipboard

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

Open mika76 opened this issue 1 year ago • 0 comments

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
    • [X] Windows 11
    • [X ] Windows 10
    • [X] macOS
    • [ ] Linux (Please specify distro)
    • [ ] iOS
    • [ ] Android
  • Browser
    • [X] Chrome
    • [X] Edge
    • [ ] Firefox
    • [ ] Safari
  • Frontend
    • [ ] Jupyter Notebook
    • [ ] Jupyter Lab
    • [ ] nteract
    • [X] Visual Studio Code
    • [ ] Visual Studio Code Insiders
    • [ ] Visual Studio
    • [ ] Other (please specify)

Screenshots

"editor.semanticHighlighting.enabled": false image

"editor.semanticHighlighting.enabled": true image

mika76 avatar Jul 04 '24 07:07 mika76