Skip to content

Conversation

@glennsarti
Copy link
Contributor

@glennsarti glennsarti commented Aug 26, 2019

Automatic alignment of hashrockets using puppet strings

Fixes #177

  • add dynamic unregistration
  • Add formatontype setting detection
  • unregister/register ontypeformatter as required
  • Respond to server capabilites if it supports on dynamic registration
  • Merge in the hashrocket stuff
  • Raise PR in puppet-vscode for puppet.editorService.formatOnType.enable

@glennsarti glennsarti added the enhancement New feature or request label Aug 26, 2019
@glennsarti
Copy link
Contributor Author

A spike to see how hard this is

hashrocket

@glennsarti glennsarti force-pushed the try-hash-rockets branch 2 times, most recently from be6cbaf to 3f74fb0 Compare August 29, 2019 07:31
@jpogran jpogran changed the title (wip) haskrocket alignment experiment (wip) (GH-177) Haskrocket Alignment Sep 6, 2019
@jpogran jpogran added this to the 0.22.0 milestone Sep 6, 2019
Previously capability registrations were assumed to only have one possible
reqeuest per method however this isn't true.  Also the request ID is needed in
order to unregister a capability.  This commit;
* Modifies the Language Client to track registrations that are in progress and
  have completed
* Now processes error messages so that registration tracking can fail tracked
  registrations
* Adds tests for these scenarios
…ient

Previously the message router was passed in as a method parameter however as
almost all methods require the message router, this commit changes the
initializer to pass in the message router at object create time.
Previously client capabilities could be dynamically registered.  This commit
adds the logic and track to dynamically unregister a capability;
* Adds the unregister_capability and parse_unregister_capability_response!
  methods
* Adds the client/unregisterCapability notification handler
* Adds tests for unregistering
This reverts commit f120ffe2588985386e10b8324711c92392b1c760.
@glennsarti
Copy link
Contributor Author

Closing in favour of #186

@glennsarti glennsarti closed this Sep 17, 2019
@glennsarti glennsarti deleted the try-hash-rockets branch September 19, 2019 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automatically align => while typing or when saving

2 participants