mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 17:48:56 +01:00
[json] dynamically enable & disable formatter
This commit is contained in:
@@ -57,12 +57,11 @@ export function activate(context: ExtensionContext) {
|
||||
documentSelector: ['json'],
|
||||
synchronize: {
|
||||
// Synchronize the setting section 'json' to the server
|
||||
configurationSection: ['json.schemas', 'http.proxy', 'http.proxyStrictSSL'],
|
||||
configurationSection: ['json', 'http.proxy', 'http.proxyStrictSSL'],
|
||||
fileEvents: workspace.createFileSystemWatcher('**/*.json')
|
||||
},
|
||||
initializationOptions: {
|
||||
languageIds,
|
||||
['format.enable']: workspace.getConfiguration('json').get('format.enable')
|
||||
languageIds
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user