Skip to content

Conversation

@glennsarti
Copy link
Contributor

Part of the work for #177


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

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

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
Copy link
Contributor

@jpogran jpogran left a comment

Choose a reason for hiding this comment

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

Paired with @glennsarti and we reviewed code

@jpogran jpogran merged commit 58b62de into puppetlabs:master Sep 18, 2019
@glennsarti glennsarti deleted the unreg-client-msgs 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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants