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

Support attributes #1208

Merged
merged 6 commits into from
Nov 29, 2023
Merged

Support attributes #1208

merged 6 commits into from
Nov 29, 2023

Conversation

vinistock
Copy link
Member

Motivation

Step towards #899

Add support for indexing attributes and using those in features. Definition and hover work without modification, there are only minor modifications in completion and workspace symbol.

Implementation

  • Started indexing attribute calls
  • Started using the property type for attributes in workspace symbol
  • Allowed completion to return attributes

Automated Tests

Added tests.

@vinistock vinistock added the enhancement New feature or request label Nov 22, 2023
@vinistock vinistock self-assigned this Nov 22, 2023
@vinistock vinistock requested a review from a team as a code owner November 22, 2023 21:56
@vinistock vinistock requested review from andyw8 and Morriar November 22, 2023 21:56
lib/ruby_lsp/requests/completion.rb Outdated Show resolved Hide resolved
Copy link
Contributor

@Morriar Morriar left a comment

Choose a reason for hiding this comment

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

I like the Member class refactor.

lib/ruby_lsp/requests/completion.rb Outdated Show resolved Hide resolved
@vinistock vinistock requested a review from Morriar November 28, 2023 20:12
@vinistock vinistock merged commit 7087f1d into main Nov 29, 2023
30 checks passed
@vinistock vinistock deleted the vs/index_attributes branch November 29, 2023 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants