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

Omnisharp doesn't autocomplete with .razor files for blazorwasm app #858

Closed
AWSchneider-dev opened this issue Feb 19, 2024 · 8 comments
Closed

Comments

@AWSchneider-dev
Copy link

I am probably the only developer trying to use NeoVim to build a Blazor WASM app but here we are.

See the image attached, I get intellisense/autocomplete in .cs files, but in .razor files I get nothing.

image

@nickspoons
Copy link
Member

Hi, unfortunately razor/blazor are not supported, and won't be unless someone decides to write quite a bit of code, see #546

The omnisharp-roslyn language server doesn't support them by itself. It can do using a secondary language server as a plugin but it's pretty complicated.

@AWSchneider-dev
Copy link
Author

Hi, unfortunately razor/blazor are not supported, and won't be unless someone decides to write quite a bit of code, see #546

The omnisharp-roslyn language server doesn't support them by itself. It can do using a secondary language server as a plugin but it's pretty complicated.

I was hoping that wasn't the case. I mainly mess with Azure Functions and C# api's. are Azure Functions supported? probably not?

@nickspoons
Copy link
Member

Supported how? Azure functions are just C# projects hosted on Azure, aren't they? What support would you need?

@AWSchneider-dev
Copy link
Author

I was more asking about Intellisense, such as recognizing timer triggers, and other Azure Function Specific syntax such as creating Durable Function and passing the context along to initiate activities.

I see the issue with razor files is the way the rzls.exe is licensed.

Azure functions use a secondary Azure Function Tools, I am not sure if it behaves in the same way. I will look into if it does, if so that will answer my question for me.

@AWSchneider-dev
Copy link
Author

yeah the template doesn't even show up with the dotnet command. I am going to say it is probably no dice

image

@nickspoons
Copy link
Member

That doesn't have anything to do with omnisharp. There are cli instructions for running azure functions tools on the command line here: https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-cli-csharp?tabs=linux%2Cazure-cli

@AWSchneider-dev
Copy link
Author

I know how to use the cli, but after importing all the packages needed after building a function using the cli, omnisharp is still throwing errors.

image

image

@nickspoons
Copy link
Member

The project hasn't loaded properly. Have a look at :OmniSharpOpenLog for details

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

2 participants