@@ -10,15 +10,15 @@ import {
1010 Hover , DocumentHighlight , CompletionList , Position , FormattingOptions , SymbolInformation
1111} from 'vscode-languageserver-types' ;
1212
13- import { ColorInformation , ColorPresentation } from 'vscode-languageserver-protocol/lib/protocol.colorProvider.proposed' ;
13+ import { ColorInformation , ColorPresentation , Color } from 'vscode-languageserver-protocol/lib/protocol.colorProvider.proposed' ;
1414
1515import { getLanguageModelCache , LanguageModelCache } from '../languageModelCache' ;
1616import { getDocumentRegions , HTMLDocumentRegions } from './embeddedSupport' ;
1717import { getCSSMode } from './cssMode' ;
1818import { getJavascriptMode } from './javascriptMode' ;
1919import { getHTMLMode } from './htmlMode' ;
2020
21- export { ColorInformation , ColorPresentation } ;
21+ export { ColorInformation , ColorPresentation , Color } ;
2222
2323export interface Settings {
2424 css ?: any ;
@@ -45,7 +45,7 @@ export interface LanguageMode {
4545 findReferences ?: ( document : TextDocument , position : Position ) => Location [ ] ;
4646 format ?: ( document : TextDocument , range : Range , options : FormattingOptions , settings : Settings ) => TextEdit [ ] ;
4747 findDocumentColors ?: ( document : TextDocument ) => ColorInformation [ ] ;
48- getColorPresentations ?: ( document : TextDocument , colorInfo : ColorInformation ) => ColorPresentation [ ] ;
48+ getColorPresentations ?: ( document : TextDocument , color : Color , range : Range ) => ColorPresentation [ ] ;
4949 doAutoClose ?: ( document : TextDocument , position : Position ) => string ;
5050 onDocumentRemoved ( document : TextDocument ) : void ;
5151 dispose ( ) : void ;
0 commit comments