color provider fixes: ColorPresentationParams.colorInfo -> color (for Microsoft/vscode-languageserver-node#348)

This commit is contained in:
Martin Aeschlimann 2018-05-15 12:37:11 +02:00 committed by GitHub
parent 88f1d87c72
commit de2ab737aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1478,7 +1478,7 @@ interface ServerCapabilities {
*
* Since 3.6.0
*/
colorProvider?: ColorProviderOptions | (ColorProviderOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions);
colorProvider?: boolean | ColorProviderOptions | (ColorProviderOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions);
/**
* The server provides execute command support.
*/
@ -3387,7 +3387,7 @@ interface ColorPresentationParams {
/**
* The color information to request presentations for.
*/
colorInfo: Color;
color: Color;
/**
* The range where the color would be inserted. Serves as a context.
@ -3592,6 +3592,8 @@ _Registration Options_: `TextDocumentRegistrationOptions`
### <a name="changeLog" class="anchor"></a>Change Log
Below a change log of the last shipped version.
* ColorServerCapabilities.colorProvider can also be a boolean
* Corrected ColorPresentationParams.colorInfo to color (as in the d.ts and in implementations)
#### <a name="version_3_7_0" class="anchor"></a>3.7.0 (4/5/2018)