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

Simplify block locals handling in semantic highlighting #1011

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

vinistock
Copy link
Member

Motivation

We don't need all of that complicated logic, there's actually a node for block locals that we can use.

Implementation

Just changed the lambda and block handling and swapped it for handling block locals directly.

@vinistock vinistock added this to the 2023-Q3 milestone Sep 15, 2023
@vinistock vinistock self-assigned this Sep 15, 2023
@vinistock vinistock requested a review from a team as a code owner September 15, 2023 15:05
Copy link
Contributor

@andyw8 andyw8 left a comment

Choose a reason for hiding this comment

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

It should be safe to ignore the Ruby HEAD failure for now.

@vinistock vinistock merged commit c01556e into yarp-clean Sep 15, 2023
17 of 21 checks passed
@vinistock vinistock deleted the vs/simplify_block_locals_handling branch September 15, 2023 16:16
vinistock added a commit that referenced this pull request Sep 19, 2023
* Temporarily disable .github/workflows/lsp_check.yml

* Temporarily disable some tests

* Preparation for YARP migration

* Migrate DocumentSymbol request to YARP

* Migrate Hover request to YARP

* Migrate PathCompletion request to YARP

* Migrate Sorbet request to YARP

* Migrate InlayHints request to YARP

* Migrate ShowSyntaxTree request to YARP

* Migrate SelectionRange request to YARP

* Migrate Definition request to YARP

* Migrate Diagnostics request to YARP

* Migrate CodeActionResolve request to YARP

* Update selection ranges expectations

* Fix rebase discrepancies

* Add YARP RBI annotations (#978)

* Migrate code lens to yarp (#979)

Migrate CodeLens to YARP

* Update `SERVER_EXTENSIONS.md` for YARP (#984)

Co-authored-by: Andy Waite <andyw8@users.noreply.github.com>

* Update text references from Syntax Tree to YARP (#986)

Co-authored-by: Andy Waite <andyw8@users.noreply.github.com>

* Fix rebase discrepancies

* Migrate folding range to YARP (#980)

* Fix rebase discrepancies 3

* Migrate semantic highlighting to YARP (#1000)

Co-authored-by: Alexandre Terrasa <Morriar@users.noreply.github.com>

* Migrate document highlight to YARP (#1005)

* Simplify block locals handling in semantic highlighting (#1011)

* Fix latest breaking changes

* Make folding range a listener (#1013)

* Migrate DocumentLink request to YARP (#982)

* Migrate DocumentLink to YARP

* Only parse comments where needed

* Fix type

* PR feedback

* Fix argument order

* Re-enable DocumentLink integration test

---------

Co-authored-by: Andy Waite <andyw8@users.noreply.github.com>

* Re-enable CI (#1022)

* Re-generate YARP RBIs

* Re-enable tests

* Fix typechecking errors

* Use locations for creating document symbol entries

---------

Co-authored-by: Andy Waite <andyw8@users.noreply.github.com>
Co-authored-by: Andy Waite <13400+andyw8@users.noreply.github.com>
Co-authored-by: Alexandre Terrasa <Morriar@users.noreply.github.com>
vinistock pushed a commit that referenced this pull request Feb 28, 2024
Test output is sent to vscode's terminal which uses \r\n to terminate
lines. Convert any line just ending with \n to \r\n so that test output
is not scrambled.
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.

None yet

3 participants