diff --git a/src/extension.ts b/src/extension.ts index f505a76f..f56b691e 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -116,7 +116,12 @@ export function startClient( // Options to control the language client const clientOptions: LanguageClientOptions = { // Register the server for on disk and newly created YAML documents - documentSelector: [{ language: 'yaml' }, { language: 'dockercompose' }, { language: 'github-actions-workflow' }, { pattern: '*.y(a)ml' }], + documentSelector: [ + { language: 'yaml' }, + { language: 'dockercompose' }, + { language: 'github-actions-workflow' }, + { pattern: '*.y(a)ml' }, + ], 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')],