diff --git a/src/extension.ts b/src/extension.ts index 6e366b2e..e7df4ffd 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -132,7 +132,7 @@ export function startClient( ], synchronize: { // Notify the server about file changes to YAML and JSON files contained in the workspace - fileEvents: [workspace.createFileSystemWatcher('**/*.?(e)y?(a)ml'), workspace.createFileSystemWatcher('**/*.json')], + fileEvents: [workspace.createFileSystemWatcher('{**/*.json,**/*.yaml,**/*.eyaml,**/*.yml}')], }, revealOutputChannelOn: RevealOutputChannelOn.Never, errorHandler: telemetryErrorHandler,