interactive icon indicating copy to clipboard operation
interactive copied to clipboard

[Visual Studio] Default language is used for cells instead of specified one

Open xperiandri opened this issue 3 years ago • 4 comments
trafficstars

Describe the bug

If I want to use F# and I specify #!fsharp in each cell, then when I save and open a notebook #!fsharp disappears from cells but stays in a file and changes cell language. However, Visual Studio always executes cells with notebook default language but not with cell-specific. So that I need to put #!fsharp back again which is terrible!!!

By the way, if I leave the first line of the cell blank but put #!fsharp on the second line it stays 😁 in the UI.

Please complete the following:

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

image

  • OS
    • Windows 11
  • Frontend
    • Visual Studio

Screenshots

image

xperiandri avatar Dec 19 '21 21:12 xperiandri

Thanks for the feedback! We're still in a Preview for ur Notebook Editor extension so not all functionality is available yet!

Language Selecting will be on our roadmap soon!

JakeRadMSFT avatar Dec 20 '21 21:12 JakeRadMSFT

@JakeRadMSFT how to do that manually? https://github.com/dotnet/interactive/discussions/1826

xperiandri avatar Dec 20 '21 22:12 xperiandri

Sorry - No way to do it yet

JakeRadMSFT avatar Dec 21 '21 19:12 JakeRadMSFT

@JakeRadMSFT any updates on the issue?

xperiandri avatar Aug 26 '22 14:08 xperiandri

Closing as support for notebooks in VS has been discontinued

claudiaregio avatar Jan 04 '23 23:01 claudiaregio