Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to enable LSP mode on omnisharp-vscode client? #3242

Closed
patilarpith opened this issue Aug 21, 2019 · 3 comments
Closed

How to enable LSP mode on omnisharp-vscode client? #3242

patilarpith opened this issue Aug 21, 2019 · 3 comments

Comments

@patilarpith
Copy link

Looks like the default launch option on the VSCode plugin is not LSP mode. How do I configure the plugin to start Omnisharp server is -lsp mode and use LanguageServer client for communication?

I saw a config with the name razor.plugin.path. Just changing this to Microsoft.AspNetCore.Razor.LanguageServer.Common.dll works?

@rchande
Copy link

rchande commented Aug 23, 2019

@patilarpith What are you trying to do? The C# extension doesn't use LSP to communicate with omnisharp. We therefore don't expose a way to start it in lsp mode.

@rchande rchande closed this as completed Aug 26, 2019
@patilarpith
Copy link
Author

Sorry for the late response.

I remember @mholo65 mentioning that he's able to run VSCode & OmniSharp-Roslyn in LSP mode. As I'm seeing some unusual behaviour with OmniSharp-Roslyn with monaco-languageclient, I was hoping the VSCode jsonrpc messages could provide some insight
OmniSharp/omnisharp-roslyn#1505 (comment)

@bjorkstromm
Copy link
Contributor

@patilarpith as @rchande pointed out, OmniSharp-VSCode doesn’t run in LSP mode. You can however, quite easily create a custom VSCode extension that pkugs into OmniSharp-Roslyn running in LSP mode. See example here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants