dotnet / interactive

.NET Interactive combines the power of .NET with many other languages to create notebooks, REPLs, and embedded coding experiences. Share code, explore data, write, and learn across your apps in ways you couldn't before.
MIT License
2.8k stars 375 forks source link

Use new LSP Host for autocomplete #3045

Open Igorgro opened 1 year ago

Igorgro commented 1 year ago

Recently the new LSP host for C# was released (https://github.com/dotnet/roslyn/tree/main/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer). It will be good if the Polyglot vscode extension will use it for providing autocomplete for C# code in notebook (maybe using vscode-dotnet extansion)

Is your feature request related to a problem? Please describe. While Polyglot extension provides some basic autocomple using some kind of embedded language server, it's still worse than the LSP Host

Describe the solution you'd like Use LSP host to provide powerful autocomplete in polyglot notebooks in vscode

Describe alternatives you've considered Use OmniSharp as language server

Igorgro commented 7 months ago

Any plans on this?

jonsequitur commented 7 months ago

Not currently. The LSP host doesn't support C# Script or polyglot. The C# language services in .NET Interactive use a custom workspace on top of Roslyn.

A polyglot LSP provider for .NET Interactive has been considered, but this solves a different problem.

Are there specific language service improvements you have in mind that you would like to see?