Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the new C#_LSP entry under the Text Editor options for?

Tags:

Visual Studio 2019 has a new entry under the Text Editor options named C#_LSP. I guess it has something to do with the Language Server Protocol, but I couldn't find what the entry is used for exactly.

Is there certain standard tooling that uses it? Or is it there for extensibility?

the C#_LSP entry is found below the C# entry under Text Editor options

like image 364
user247702 Avatar asked May 22 '19 13:05

user247702


People also ask

Is there a new C-Class?

Significantly the new C borrows much tech from the current-gen S-Class, including the basic layout and concept of its interior. The engines range from mild-hybrid four-cylinders to a plug-in petrol with a diesel on the way.

How much is the latest Benz 2022?

The 2022 C-Class sedan starts at $43,550. The midtier Exclusive model starts at $45,800, and the top Pinnacle trim has a starting MSRP of $47,500. All-wheel drive is available in all models for an additional $2,000.

What is the difference between c220 and C300?

The C-Class diesel comes in two variants - C220d and C300d. The C220d has a 2.0L engine that puts out 197 BHP & 440 Nm, while the C300d makes 261 BHP & 550 Nm. Like the petrol, both these variants come with a 48v mild hybrid system as well. All engines come paired with a 9-speed automatic transmission.

What's the difference between C200 and C300?

The Australian range at launch will be opened by the C200, powered by a 1.5-litre turbocharged petrol four-cylinder developing 150kW (and likely 300Nm). The C300 steps up to a larger 2.0-litre turbo-petrol four-cylinder, producing 190kW (and likely 400Nm).


2 Answers

This is a bug. Internally some stuff is implemented with an LSP for Visual Studio Live Share, but a side-effect of that implementation was the C#_LSP entry appears. The entry doesn't do anything.

like image 93
Jason Malinowski Avatar answered Sep 18 '22 14:09

Jason Malinowski


The Language Server Protocol (LSP) is a common protocol, used to provide language service features to various code editors. Using the protocol, developers can write a single language server to provide language service features like IntelliSense, error diagnostics, find all references, and so on, to various code editors that support the LSP. Traditionally, language services in Visual Studio can be added by using TextMate grammar files to provide basic functionalities such as syntax highlighting or by writing custom language services that use the full set of Visual Studio extensibility APIs to provide richer data. With Visual Studio support for LSP, there's a third option.

Source: https://docs.microsoft.com/en-us/visualstudio/extensibility/adding-an-lsp-extension?view=vs-2019

Based on this I assume that the C#_LSP option is for a case when you decide not to use build-in C# services and use LSP instead.

Personally I don't see any common use case for it, but I am sure there are people out there who like it that way.

like image 36
Jakub Šturc Avatar answered Sep 18 '22 14:09

Jakub Šturc