csharp-language-server
csharp-language-server copied to clipboard
Support for Razor pages
Is support for Razor pages planned? I'm currently working on an ASP.NET Core Razor project and having LSP support in cshtml files would be awesome.
I was working on a prototype at one point but left it abandoned due to lack of time :(
My initial dabblings at parser+lexer for razor: https://github.com/razzmatazz/fazor
Not sure if that is the right approach. Ideally it should integrate with microsoft asp.net razor libs/parsers to not maintain our own.
I have found https://github.com/dotnet/razor, which supposedly implements a LS "rzls", but apparently noone is using it. According to this comment, the integration of rzls seems to be non-trivial. Also just found this post related to the LS included with the vscode C# plugin.
i found the rzls thing a while back as well and tried to build and then use it but failed even building it i might try building it again, setting up a script, then try to reverse enegineer how vscode uses it most probably not cuz im no expert and dont have that much time but ill post here and on that omnisharp-vim thread if i find anything
ok so getting rzls to build and work wasnt so hard now but it seems it has a ton of custom LSP messages and that language server wont work with a general LSP client implementation
☝🏻 that was exactly the result of my investigation of rzls, --you would need to implement additional behaviour and preserve a lot of state on the client to integrate it
I am working on a plugin to hopefully work towards support for this is anyone is looking to collaborate
https://github.com/tris203/rzls.nvim