mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-21 18:59:15 +00:00
[html] clean up request service: add CustomDataRequestService #135459
This commit is contained in:
@@ -4,9 +4,9 @@
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { IHTMLDataProvider, newHTMLDataProvider } from 'vscode-html-languageservice';
|
||||
import { RequestService } from './requests';
|
||||
import { CustomDataRequestService } from './htmlServer';
|
||||
|
||||
export function fetchHTMLDataProviders(dataPaths: string[], requestService: RequestService): Promise<IHTMLDataProvider[]> {
|
||||
export function fetchHTMLDataProviders(dataPaths: string[], requestService: CustomDataRequestService): Promise<IHTMLDataProvider[]> {
|
||||
const providers = dataPaths.map(async p => {
|
||||
try {
|
||||
const content = await requestService.getContent(p);
|
||||
|
||||
Reference in New Issue
Block a user