Skip to content

Add generic capabilities type - #459

Merged
Dirk Bäumer (dbaeumer) merged 1 commit into
microsoft:masterfrom
johnwiseheart:jw/generic-capabilities
Feb 19, 2019
Merged

Dirk Bäumer (dbaeumer) merged 1 commit into
microsoft:masterfrom
johnwiseheart:jw/generic-capabilities

Conversation

@johnwiseheart

Copy link
Copy Markdown

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 John Wiseheart (johnwiseheart) changed the title Add generic capabilities Add generic capabilities type Feb 11, 2019
@dbaeumer

Copy link
Copy Markdown
Member

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

@dbaeumer
Dirk Bäumer (dbaeumer) merged commit 3191f4d into microsoft:master Feb 19, 2019
@johnwiseheart

Copy link
Copy Markdown
Author

Hey Dirk Bäumer (@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
Copy Markdown
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