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

LSP hover stopped working in some cases #5516

Closed
asterite opened this issue Jul 15, 2024 · 0 comments · Fixed by #5515
Closed

LSP hover stopped working in some cases #5516

asterite opened this issue Jul 15, 2024 · 0 comments · Fixed by #5515
Labels
bug Something isn't working

Comments

@asterite
Copy link
Collaborator

Aim

Hovering over, for example, "BoundedVec" in a line like use std::collections::bounded_vec::BoundedVec wouldn't show hover information and instead show an LSP error.

This broke in 70dabfa where a refactor was made to avoid duplicating a module's parent ID in ModuleAttributes.

Expected Behavior

LSP hover works as before.

Bug

LSP hover doesn't work anymore.

To Reproduce

No response

Project Impact

None

Impact Context

No response

Workaround

None

Workaround Description

No response

Additional Context

No response

Installation Method

None

Nargo Version

No response

NoirJS Version

No response

Would you like to submit a PR for this Issue?

Yes

Support Needs

No response

@asterite asterite added the bug Something isn't working label Jul 15, 2024
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Noir Jul 15, 2024
github-merge-queue bot pushed a commit that referenced this issue Jul 15, 2024
# Description

## Problem

Resolves #5516

## Summary

It seems hover broke in 70dabfa .
However, our tests still pass. I still don't understand why it only
breaks when the request comes from an actual VS Code instance and not in
tests... but for now I'd rather revert the commit that broke it and
eventually try to do the refactor again, because having hover is pretty
nice :-)

## Additional Context

None.

## 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.

Co-authored-by: Tom French <[email protected]>
@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in Noir Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant