Skip to content

Conversation

wildmaples
Copy link
Contributor

Motivation

Define a new semantic token for method names using the modifiers implemented in #112

Implementation

Similar to the previous semantic tokens, add a visit method for it.

Automated Tests

Most of the tests contain a method definition, which means an additional token is added to the array of expected tokens.

Manual Tests

  • Check out this branch and use the tool Inspect Editor Token and Scope.
  • Click on a method name

Screen Shot 2022-06-07 at 2 01 55 PM

@wildmaples wildmaples requested a review from a team June 7, 2022 18:04
@wildmaples wildmaples self-assigned this Jun 7, 2022
Base automatically changed from introduce-token-modifiers to main June 7, 2022 18:10
@encoder.encode(@tokens)
end

def visit_def(node)
Copy link
Member

Choose a reason for hiding this comment

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

Can we do singleton and endless definition methods too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes! Can that be in the next PR?

Copy link
Contributor Author

@wildmaples wildmaples Jun 8, 2022

Choose a reason for hiding this comment

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

PR for singleton and endless def: #134

Copy link
Member

Choose a reason for hiding this comment

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

Thank you!

@wildmaples wildmaples merged commit 7885cc9 into main Jun 8, 2022
@wildmaples wildmaples deleted the highlight-def branch June 8, 2022 19:41
@shopify-shipit shopify-shipit bot temporarily deployed to production June 15, 2022 15:46 Inactive
andyw8 referenced this pull request in andyw8/ruby-lsp Mar 2, 2024
…mport-resolver-typescript-3.1.1

Bump eslint-import-resolver-typescript from 2.7.1 to 3.1.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants