provideColorPresentations should have document in paramaters.

This commit is contained in:
rebornix
2017-09-20 13:44:57 -07:00
parent ce20acd130
commit 084849c2fa
11 changed files with 18 additions and 17 deletions

View File

@@ -132,7 +132,7 @@ export function activate(context: ExtensionContext) {
});
});
},
provideColorPresentations(colorInfo: ColorInformation): ColorPresentation[] | Thenable<ColorPresentation[]> {
provideColorPresentations(document: TextDocument, colorInfo: ColorInformation): ColorPresentation[] | Thenable<ColorPresentation[]> {
let result: ColorPresentation[] = [];
let color = colorInfo.color;
let label;