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

OmniSharpDocumentSymbolHandler.cs: a fix for a crash in 'textDocument/documentSymbol` LSP request #2144

Conversation

razzmatazz
Copy link
Contributor

@razzmatazz razzmatazz commented May 1, 2021

The NRE may happen when OS.R.CS.Services.Structure.CodeStructureService
returns a null during the time when projects are still being loaded but
LSP client already sends queries for symbol info under cursor.

Reported in and should fix #2141

…/documentSymbol'

The NRE may happen when OS.R.CS.Services.SStructre.CodeStructureService
returns a null during the time when projects are still being loaded but
LSP client already sends queries for symbol info under cursor.

Related to OmniSharp#2141
@filipw
Copy link
Member

filipw commented May 4, 2021

Thanks a lot - I think we should better solve it for non-LSP endpoint as well. I opened #2148 which should supersede this PR here.

@razzmatazz
Copy link
Contributor Author

Great!

@razzmatazz razzmatazz closed this May 4, 2021
@razzmatazz razzmatazz deleted the lsp-fix-nre-in-doc-symbol-handler branch May 18, 2021 18:41
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.

OmniSharp.Extensions.JsonRpc.InputHandler: Failed to handle request textDocument/documentSymbol 2
2 participants