[json] update proxy on settings update

This commit is contained in:
Martin Aeschlimann
2016-01-26 09:56:43 +01:00
parent 9443432459
commit 4c6534ebc6
2 changed files with 10 additions and 16 deletions

View File

@@ -45,13 +45,8 @@ export function activate(context: ExtensionContext) {
documentSelector: ['json'],
synchronize: {
// Synchronize the setting section 'json' to the server
configurationSection: 'json',
configurationSection: ['json.schemas', 'http.proxy', 'http.proxyStrictSSL'],
fileEvents: workspace.createFileSystemWatcher('**/.json')
},
initializationOptions: {
proxy: workspace.getConfiguration().get('http.proxy'),
proxyStrictSSL: workspace.getConfiguration().get('http.proxyStrictSSL'),
}
}