Extending Microsoft.AspNetCore.Razor.LanguageServer and it's client #24491
Unanswered
abbatepabloo
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Language Service Protocol Extension:
I have being playing a little bit with aspnetcore-tooling using Visual Studio 2019 LSP and I'm wondering if it's possible to extend the server's and client's functionality in order to enrich the user experience in a custom component.
Scenario:
In order to try to accomplish this goal I tried some things:
I created a Visual Studio Extension Project (VSIX) and included the aspnetcore-tooling's assemblies that could help me to extend the existing server funcionality, maybe by inheriting from Microsoft.AspNetCore.Razor.LanguageServer.RazorLanguageServer. Then I realized that those assemblies are using internal classes and only allow the access vía InternalsVisibleTo attribute to a known group of assemblies. It didn't work.
Different approach: I tried to create an analyzer and it's an accompanying code fix. I tried two approaches:
Because I'm far from being an expert in this matter may be I'm creating a dumb discussion. My apologies in advance.
Beta Was this translation helpful? Give feedback.
All reactions