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

ColorServerCapabilities colorProvider should accept boolean too? #349

Closed
angelozerr opened this issue May 14, 2018 · 3 comments
Closed

ColorServerCapabilities colorProvider should accept boolean too? #349

angelozerr opened this issue May 14, 2018 · 3 comments
Assignees
Milestone

Comments

@angelozerr
Copy link

The declaration of ColorServerCapabilities#colorProvider https://github.com/Microsoft/vscode-languageserver-node/blob/eca5fd2f23529315d53b9dad98377fb968ceba56/protocol/src/protocol.colorProvider.ts#L39 doesn't accept a simple boolean (the specification says that too), but the CSS, HTML, JSON Language Server returns a simple boolean

colorProvider : true

In my case I cannot consume CSS, HTML, JSON Language Server with LSP4j which doesn't accept a boolean for colorProvider. Could you give me clarification about the use of this boolean please (is an error of CSS, HTML, JSON Language Server or a miss of specification?) Thanks!

@dbaeumer
Copy link
Member

@aeschli can you please comment.

@aeschli aeschli added this to the May 2018 milestone May 15, 2018
@aeschli
Copy link
Contributor

aeschli commented May 15, 2018

Boolean is fine for the color provider too, so I added it to the spec.

I change our code to use {} in the meantime.

@angelozerr
Copy link
Author

Thank a lot @dbaeumer @aeschli for your clarification!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants