Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: LSP document symbol didn't work for primitive impls (#5970)
# Description ## Problem While working with the standard library I noticed Document Symbol didn't work with primitive impls. ## Summary If you have this: ```rust impl i32 { fn foo() {} } ``` then pressing command+shift+o on VS Code didn't show `impl i32` nor `foo()`. I think when I coded this logic I didn't know you could have impls for non-named types. This PR fixes that. ## Additional Context ## Documentation Check one: - [x] No documentation needed. - [ ] Documentation included in this PR. - [ ] **[For Experimental Features]** Documentation to be submitted in a separate PR. # PR Checklist - [x] I have tested the changes locally. - [x] I have formatted the changes with [Prettier](https://prettier.io/) and/or `cargo fmt` on default settings.
- Loading branch information