Skip to content

Commit b82e95c

Browse files
mousetrapsfelixfbecker
authored andcommitted
Enable fileEvents in client options (#83)
This is necessary to notify the server about changes to PHP files in the workspace and receive workspace/file
1 parent f635ba8 commit b82e95c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/extension.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
9494
},
9595
synchronize: {
9696
// Synchronize the setting section 'php' to the server
97-
configurationSection: 'php'
98-
// Notify the server about file changes to composer.json files contain in the workspace
99-
// fileEvents: vscode.workspace.createFileSystemWatcher('**/composer.json')
97+
configurationSection: 'php',
98+
// Notify the server about changes to PHP files in the workspace
99+
fileEvents: vscode.workspace.createFileSystemWatcher('**/*.php')
100100
}
101101
};
102102

0 commit comments

Comments
 (0)