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

Do not push ranges for single line comments #185

Merged
merged 1 commit into from
Jul 5, 2022

Conversation

adisonlampert
Copy link
Contributor

Motivation

We were pushing single line partial ranges in response but they're not used by VSCode for anything so now we are skipping them.

Implementation

Added multiline? function to PartialRange class to check if the partial was multiline and include if it is.

Automated Tests

Added in single_comment.rb fixture which is just a single comment that does not get checked. All other tests passing.

@adisonlampert adisonlampert requested a review from a team July 5, 2022 18:54
@adisonlampert adisonlampert self-assigned this Jul 5, 2022
@adisonlampert adisonlampert merged commit 8243f9b into main Jul 5, 2022
@adisonlampert adisonlampert deleted the al/do-not-push-ranges-for-single-line-comments branch July 5, 2022 19:12
@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
…ypescript-eslint/parser-5.33.0

Bump @typescript-eslint/parser from 5.32.0 to 5.33.0
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.

4 participants