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

Include all token types in legend #182

Merged
merged 2 commits into from
Jul 5, 2022

Conversation

vinistock
Copy link
Member

Motivation

Add all token types from the LSP specification in our legend, similar to what we're doing for modifiers and for symbol types in document symbol. This is mostly for consistency, but also so that we have the full list available when handling new tokens.

Implementation

  • Added the full list
  • Changed the array to be a hash, so that we don't have to find items in an array for every token and can just access it
  • Updated tests to reflect the change in token indices

Automated Tests

Updated tests to reflect the change in token indices.

Manual Tests

There shouldn't be any functional change.

@vinistock vinistock requested a review from a team July 4, 2022 18:37
@vinistock vinistock self-assigned this Jul 4, 2022
@vinistock vinistock merged commit 75c2d1b into main Jul 5, 2022
@vinistock vinistock deleted the vs/include_all_token_types_in_legend branch July 5, 2022 15:34
@shopify-shipit shopify-shipit bot temporarily deployed to production July 7, 2022 19:06 Inactive
@shopify-shipit shopify-shipit bot temporarily deployed to 0-2-stable July 27, 2022 13:55 Inactive
andyw8 pushed a commit to andyw8/ruby-lsp that referenced this pull request Mar 2, 2024
…ypes/node-18.6.5

Bump @types/node from 18.6.3 to 18.6.5
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