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

Support for Razor pages #138

Open
mphe opened this issue Feb 28, 2024 · 7 comments
Open

Support for Razor pages #138

mphe opened this issue Feb 28, 2024 · 7 comments

Comments

@mphe
Copy link

mphe commented Feb 28, 2024

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.

@razzmatazz
Copy link
Owner

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

@razzmatazz
Copy link
Owner

Not sure if that is the right approach. Ideally it should integrate with microsoft asp.net razor libs/parsers to not maintain our own.

@mphe
Copy link
Author

mphe commented Mar 4, 2024

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.

@haras-unicorn
Copy link

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

@haras-unicorn
Copy link

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

@razzmatazz
Copy link
Owner

☝🏻 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

@tris203
Copy link

tris203 commented Jun 3, 2024

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

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

4 participants