Skip to content

Add generic capabilities type#459

Merged
dbaeumer merged 1 commit intomicrosoft:masterfrom
johnwiseheart:jw/generic-capabilities
Feb 19, 2019
Merged

Add generic capabilities type#459
dbaeumer merged 1 commit intomicrosoft:masterfrom
johnwiseheart:jw/generic-capabilities

Conversation

@johnwiseheart
Copy link

We have a variety of experimental capabilities that we add using the ServerCapabilities type, but are unable to type them nicely because experimental is typed as any. By adding this generic, it would enable people to reuse this type, without having to hack around the any, without changing how any back-compatibility of existing code works (I think).

Thoughts?

@johnwiseheart johnwiseheart changed the title Add generic capabilities Add generic capabilities type Feb 11, 2019
@dbaeumer
Copy link
Member

Actually that makes sense now that TS support default values for generics.

@dbaeumer dbaeumer merged commit 3191f4d into microsoft:master Feb 19, 2019
@johnwiseheart
Copy link
Author

Hey @dbaeumer would you mind publishing a new version to npm? Would like to use this in https://www.npmjs.com/package/vscode-base-languageclient

@dbaeumer
Copy link
Member

I released new verion as next. However vscode-base-languageclient is not maintained by us.

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