mirror of
https://github.com/microsoft/language-server-protocol.git
synced 2025-12-23 08:48:16 +00:00
color provider fixes: ColorPresentationParams.colorInfo -> color (for Microsoft/vscode-languageserver-node#348)
This commit is contained in:
parent
88f1d87c72
commit
de2ab737aa
1 changed files with 4 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue