interactive icon indicating copy to clipboard operation
interactive copied to clipboard

No code highlighting after extension activation

Open arkada38 opened this issue 10 months ago • 1 comments

Describe the bug

When opening the notebook, code highlighting is present in the cells for some time. However, after activating the extension, the code highlighting disappears.

[info] [Error - 15:11:53] Document pull failed for text document vscode-notebook-cell:path_to_file
[info]   Message: Failed to get language for textDocument/diagnostic
  Code: -32000 
[object Object]

Please complete the following:

Which version of .NET Interactive are you using?

Version: 1.0.621602+9ac1a4da0a0b43ca794f936f635934a55fa5cdf3

Library version: 1.0.0-beta.25216.2+9ac1a4da0a0b43ca794f936f635934a55fa5cdf3

  • OS
    • [x] Windows 11 arm
  • Frontend
    • [x] Visual Studio Code

Screenshots

Image

Image

arkada38 avatar Apr 25 '25 08:04 arkada38

In my case it was related to https://github.com/dotnet/interactive/issues/3593

I added this workarround to my config:

"[polyglot-notebook]": {
	"editor.semanticHighlighting.enabled": true
},

or just globally

"editor.semanticHighlighting.enabled": true

uberkael avatar Sep 02 '25 08:09 uberkael