diff --git a/extensions/json-language-features/server/README.md b/extensions/json-language-features/server/README.md index 8047006f4e3c19..7c088fe0cd7dea 100644 --- a/extensions/json-language-features/server/README.md +++ b/extensions/json-language-features/server/README.md @@ -29,7 +29,7 @@ The server implements the following capabilities of the language server protocol - syntax errors - structural validation based on the document's [JSON schema](http://json-schema.org/). -In order to load JSON schemas, the JSON server uses NodeJS `http` and `fs` modules. For all other features, the JSON server only relies on the documents and settings provided by the client through the LSP. +In the Node.js build, the JSON server uses the `fs` module to load `file` schemas by default and delegates all other schema requests to the client. The browser build delegates all schema requests to the client. For all other features, the JSON server only relies on the documents and settings provided by the client through the LSP. ### Client requirements @@ -127,7 +127,6 @@ let clientOptions: LanguageClientOptions = { If `handledSchemaProtocols` is not set, the JSON language server will load the following URLs itself: -- `http`, `https`: Loaded using NodeJS's HTTP support. Proxies can be configured through the settings. - `file`: Loaded using NodeJS's `fs` support. #### Schema content request diff --git a/extensions/json-language-features/server/src/jsonServer.ts b/extensions/json-language-features/server/src/jsonServer.ts index 1e109fac5a3ef4..1344943d37b8dc 100644 --- a/extensions/json-language-features/server/src/jsonServer.ts +++ b/extensions/json-language-features/server/src/jsonServer.ts @@ -88,7 +88,7 @@ const sortCodeActionKind = CodeActionKind.Source.concat('.sort', '.json'); export function startServer(connection: Connection, runtime: RuntimeEnvironment) { - function getSchemaRequestService(handledSchemas: string[] = ['https', 'http', 'file']) { + function getSchemaRequestService(handledSchemas: string[] = ['file']) { const builtInHandlers: { [protocol: string]: RequestService | undefined } = {}; for (const protocol of handledSchemas) { if (protocol === 'file') { @@ -579,4 +579,3 @@ function getFullRange(document: TextDocument): Range { -