Align signatures with other providers.

This commit is contained in:
rebornix
2017-09-08 14:11:44 -07:00
parent f0ecb26ace
commit 3753e0e1d2
8 changed files with 11 additions and 11 deletions

View File

@@ -730,7 +730,7 @@ class ColorProviderAdapter {
}
resolveColor(color: modes.IColor, colorFormat: modes.ColorFormat): TPromise<string> {
return asWinJsPromise(token => this._provider.resolveColor(color, colorFormat));
return asWinJsPromise(token => this._provider.resolveDocumentColor(color, colorFormat));
}
}
@@ -1042,7 +1042,7 @@ export class ExtHostLanguageFeatures implements ExtHostLanguageFeaturesShape {
return this._withAdapter(handle, ColorProviderAdapter, adapter => adapter.provideColors(resource));
}
$resolveColor(handle: number, color: modes.IColor, colorFormat: modes.ColorFormat): TPromise<string> {
$resolveDocumentColor(handle: number, color: modes.IColor, colorFormat: modes.ColorFormat): TPromise<string> {
return this._withAdapter(handle, ColorProviderAdapter, adapter => adapter.resolveColor(color, colorFormat));
}