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

Remove usage of present? from hover #509

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

vinistock
Copy link
Member

@vinistock vinistock commented Nov 5, 2024

We cannot use present? in the add-on side of the code because that method is defined by activesupport and that gem is not required on the LSP side.

It's only safe to use it in the runtime server side. This is currently breaking hover.

Note: tests won't catch this because in tests the Rails context is loaded through the dummy application, which makes tests pass despite this code breaking every time in real scenarios.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @vinistock and the rest of your teammates on Graphite Graphite

@vinistock vinistock added the bugfix This PR fixes an existing bug label Nov 5, 2024 — with Graphite App
@vinistock vinistock marked this pull request as ready for review November 5, 2024 21:40
@vinistock vinistock requested a review from a team as a code owner November 5, 2024 21:40
Copy link
Contributor

@andyw8 andyw8 left a comment

Choose a reason for hiding this comment

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

I'll try think of a way we could restructure the tests to catch this kind of thing.

@vinistock vinistock merged commit ee03b76 into main Nov 5, 2024
29 checks passed
Copy link
Member Author

Merge activity

  • Nov 5, 4:51 PM EST: A user merged this pull request with Graphite.

@vinistock vinistock deleted the 11-05-remove_usage_of_present_from_hover branch November 5, 2024 21:51
@andyw8
Copy link
Contributor

andyw8 commented Nov 6, 2024

I'll try think of a way we could restructure the tests to catch this kind of thing.

#510

@amomchilov amomchilov changed the title Remove usage of present? from hover Remove usage of present? from hover Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This PR fixes an existing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants