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

CAT-1670 - Fix onTypeFormatting due to undefined variable json_rpc_handler #376

Merged
merged 3 commits into from
Apr 24, 2024

Conversation

jordanbreen28
Copy link
Contributor

@jordanbreen28 jordanbreen28 commented Apr 24, 2024

Summary

Prior to this PR, we would see in the language server logs that we were referencing an undefined variable json_rpc_handler.

This had knock on effects, such as registering the onTypeformatting provider, meaning this setting would not work when enabled.

We now update the json_rpc_handler send message event to be consistent with the rest of the language server, and to fix the undefined variable error.

The dynamically registered providers, like onTypeFormatting, will now work as expected.

Additional Context

Add any additional context about the problem here.

  • Root cause and the steps to reproduce. (If applicable)
  • Thought process behind the implementation.

Related Issues (if any)

Indirectly fixes #203

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified.

@jordanbreen28 jordanbreen28 requested a review from a team as a code owner April 24, 2024 10:59
Prior to this commit, we would see in the language server logs that we
were referencing an undefined variable `json_rpc_handler`.

This had knock on effects, such as registering the onTypeformatting
provider, meaning this setting would not work when enabled.

We now update the json_rpc_handler send message event to be consistent
with the rest of the language server, and to fix the undefined variable
error.

The dynamically registered providers, like onTypeFormatting, will now
work as expected.
@jordanbreen28 jordanbreen28 changed the title CAT-1670 - Fix undefined variable json_rpc_handler CAT-1670 - Fix onTypeFormatting due to undefined variable json_rpc_handler Apr 24, 2024
Copy link

codecov bot commented Apr 24, 2024

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 11.69%. Comparing base (f36499a) to head (2126f5e).

Files Patch % Lines
lib/puppet-languageserver/message_handler.rb 0.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #376      +/-   ##
==========================================
- Coverage   11.69%   11.69%   -0.01%     
==========================================
  Files          92       92              
  Lines       11501    11504       +3     
==========================================
  Hits         1345     1345              
- Misses      10156    10159       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@david22swan david22swan left a comment

Choose a reason for hiding this comment

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

LGTM

@david22swan david22swan merged commit 3b7fecb into main Apr 24, 2024
11 of 13 checks passed
@david22swan david22swan deleted the CAT-1670-fix_allignment branch April 24, 2024 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto alignment doesn't work on virtual resources
2 participants