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

Including column constraints, foreign keys and indexes on hover #394

Open
janko opened this issue May 28, 2024 · 2 comments
Open

Including column constraints, foreign keys and indexes on hover #394

janko opened this issue May 28, 2024 · 2 comments
Labels
enhancement New feature or request help-wanted Extra attention is needed

Comments

@janko
Copy link

janko commented May 28, 2024

I was looking to replace the Annotate gem with Ruby LSP, but I noticed that its schema information is much slimmer than what Annotate offers. I'm often looking at NOT NULL constraints, default values, foreign keys and indexes in Annotate comments, but Ruby LSP currently shows only column names and types. Is that possibly on the roadmap?

@vinistock vinistock added enhancement New feature or request help-wanted Extra attention is needed labels Jun 3, 2024
@vinistock
Copy link
Member

Thank you for the feature suggestion! It would be great to show more of the schema information on hover. It's not in our immediate roadmap, but our team will be glad to provide assistance and review any PRs if someone wishes to contribute that.

@andyw8 andyw8 changed the title Including column constraints, foregin keys and indexes on hover Including column constraints, foreign keys and indexes on hover Jun 3, 2024
@Earlopain
Copy link
Contributor

Here's the implementation of annotate for attributes: https://github.com/ctran/annotate_models/blob/5d01c4171990c4fe7b9b0977b05ce14a98209e53/lib/annotate/annotate_models.rb#L936-L982 to give an idea of what it all does

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help-wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants