提交 ebc11fe9 编写于 作者: J Joao Moreno

fix proxy regex validator

related to #9305
上级 c84ecd78
...@@ -151,7 +151,7 @@ confRegistry.registerConfiguration({ ...@@ -151,7 +151,7 @@ confRegistry.registerConfiguration({
properties: { properties: {
'http.proxy': { 'http.proxy': {
type: 'string', type: 'string',
pattern: '^https?://[^:]+(:\\d+)?$|^$', 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") 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': { 'http.proxyStrictSSL': {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册