Skip to content

Commit

Permalink
Watch **/*.tf & **/*.tfvars by default
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko committed May 3, 2022
1 parent 2b50faf commit 8f59e1e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
const initializationOptions = getInitializationOptions();
const clientOptions: LanguageClientOptions = {
documentSelector: documentSelector,
synchronize: {
fileEvents: [
vscode.workspace.createFileSystemWatcher('**/*.tf'),
vscode.workspace.createFileSystemWatcher('**/*.tfvars'),
],
},
initializationOptions: initializationOptions,
initializationFailedHandler: (error) => {
reporter.sendTelemetryException(error);
Expand Down

0 comments on commit 8f59e1e

Please sign in to comment.