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 LSP panic on requesting doc symbols from VSCode #1416

Merged
merged 1 commit into from
Jun 29, 2023

Conversation

yannham
Copy link
Member

@yannham yannham commented Jun 29, 2023

When working on the VSCode extension, opening the std library from VSCode would trigger a request for document symbols, which made the LSP panic. It seems that, once more, an item that we assumed MUST have a position doesn't. While it's not clear if this is legit or not (for declaration items to be position-less), replacing the unwrap() by just ignoring items without a position at least doesn't crash the server in the meantime.

TODO (after merging)

  • Backport to 1.1.0-release

@yannham yannham enabled auto-merge June 29, 2023 11:31
@github-actions github-actions bot temporarily deployed to pull request June 29, 2023 11:32 Inactive
@yannham yannham added this pull request to the merge queue Jun 29, 2023
Merged via the queue into master with commit f94e5af Jun 29, 2023
@yannham yannham deleted the fix/lsp-document-symbol-panics branch June 29, 2023 12:37
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.

2 participants