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

Add on type formatting completions #253

Merged
merged 4 commits into from
Aug 26, 2022
Merged

Conversation

vinistock
Copy link
Member

Motivation

Please see Shopify/vscode-ruby-lsp#193.

Implementation

Add the new onTypeFormatting request and handle automatically closing ends, pipes and string interpolations.

Automated Tests

Included new tests.

Manual Tests

Please see Shopify/vscode-ruby-lsp#193.

@vinistock vinistock self-assigned this Aug 19, 2022
@vinistock vinistock marked this pull request as ready for review August 19, 2022 15:59
@vinistock vinistock requested a review from a team as a code owner August 19, 2022 15:59
Copy link
Contributor

@egiurleo egiurleo left a comment

Choose a reason for hiding this comment

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

This is awesome! I really appreciate the effort you made to isolate behavior into methods and make this code readable.

Question: what is the .keep file in the test folder?

lib/ruby_lsp/requests/on_type_formatting.rb Show resolved Hide resolved
lib/ruby_lsp/requests/on_type_formatting.rb Show resolved Hide resolved
@vinistock
Copy link
Member Author

We didn't need the expectations test or the folder, so I removed it in the latest commits.

@vinistock vinistock merged commit d6f7cba into main Aug 26, 2022
@vinistock vinistock deleted the vs/add_on_type_formatting branch August 26, 2022 13:29
@shopify-shipit shopify-shipit bot temporarily deployed to production August 26, 2022 20:47 Inactive
@shopify-shipit shopify-shipit bot temporarily deployed to 0-3-stable September 6, 2022 17:30 Inactive
andyw8 pushed a commit to andyw8/ruby-lsp that referenced this pull request Mar 2, 2024
…running_bundle_install

Display progress when running bundle install
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