From 59fb941bbd3e4a96460a3a0dda724848250cd3f7 Mon Sep 17 00:00:00 2001 From: jpinkney Date: Mon, 15 Jan 2018 15:05:02 -0500 Subject: [PATCH] Added file watch for changed json files for redhat-developer/yaml-language-server#34 --- src/extension.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/extension.ts b/src/extension.ts index 2105442e..c806ae9d 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -42,7 +42,10 @@ export function activate(context: ExtensionContext) { // Synchronize the setting section 'languageServerExample' to the server configurationSection: ['yaml', 'http.proxy', 'http.proxyStrictSSL'], // Notify the server about file changes to '.clientrc files contain in the workspace - fileEvents: workspace.createFileSystemWatcher('**/*.?(e)y?(a)ml') + fileEvents: [ + workspace.createFileSystemWatcher('**/*.?(e)y?(a)ml'), + workspace.createFileSystemWatcher('**/*.json') + ] } }