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

Fix formatting fails in the presence of a non-extensible directive #1663

Merged
merged 1 commit into from
Mar 6, 2020

Conversation

ajaybhargavb
Copy link
Contributor

Fixes dotnet/aspnetcore#19609

We get a null-ref in cases of non-extensible directives like @using which don't have a DirectiveDescriptor attached to them.

@NTaylorMullen
Copy link
Contributor

Aside from the Razor log does anything else break because of this? Aka, does the language server crash?

Copy link
Contributor

@NTaylorMullen NTaylorMullen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simple enough. :shipit:

@ajaybhargavb
Copy link
Contributor Author

ajaybhargavb commented Mar 6, 2020

Aside from the Razor log does anything else break because of this? Aka, does the language server crash?

No. It only shows up in the logs.

@ajaybhargavb ajaybhargavb merged commit 0002c66 into master Mar 6, 2020
@ajaybhargavb ajaybhargavb deleted the ajbaaska/fix-formatting branch March 6, 2020 18:26
@NTaylorMullen
Copy link
Contributor

No. It only shows up in the logs.

Awesome, good to know!

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

Successfully merging this pull request may close these issues.

Trying to format .razor files, but getting error "Request textDocument/rangeFormatting failed"
2 participants