add regex pattern to http.proxy

related to #5596
This commit is contained in:
Joao Moreno 2016-04-21 22:00:11 +02:00
parent 619f10e398
commit 79b25eaac8

View file

@ -104,19 +104,20 @@ export class RequestService extends BaseRequestService {
// Configuration
let confRegistry = <IConfigurationRegistry>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.")
}
}
});