diff --git a/src/vs/workbench/services/request/node/requestService.ts b/src/vs/workbench/services/request/node/requestService.ts index 6e3614495a7..f2d9c53903e 100644 --- a/src/vs/workbench/services/request/node/requestService.ts +++ b/src/vs/workbench/services/request/node/requestService.ts @@ -104,19 +104,20 @@ export class RequestService extends BaseRequestService { // Configuration let confRegistry = platform.Registry.as(Extensions.Configuration); confRegistry.registerConfiguration({ - 'id': 'http', - 'order': 9, - 'title': nls.localize('httpConfigurationTitle', "HTTP configuration"), - 'type': 'object', - 'properties': { + id: 'http', + order: 9, + title: nls.localize('httpConfigurationTitle', "HTTP configuration"), + type: 'object', + properties: { 'http.proxy': { - 'type': 'string', - 'description': nls.localize('proxy', "The proxy setting to use. If not set will be taken from the http_proxy and https_proxy environment variables") + type: 'string', + pattern: '^https?://[^:]+(:\\d+)?$', + description: nls.localize('proxy', "The proxy setting to use. If not set will be taken from the http_proxy and https_proxy environment variables") }, 'http.proxyStrictSSL': { - 'type': 'boolean', - 'default': true, - 'description': nls.localize('strictSSL', "Whether the proxy server certificate should be verified against the list of supplied CAs.") + type: 'boolean', + default: true, + description: nls.localize('strictSSL', "Whether the proxy server certificate should be verified against the list of supplied CAs.") } } }); \ No newline at end of file