diff --git a/package.json b/package.json index 32659b4a92..8b7df8a36c 100644 --- a/package.json +++ b/package.json @@ -768,7 +768,7 @@ }, { "view": "terraform.providers", - "contents": "There are no installed providers found for the current open file.\n[Learn more about providers](https://www.terraform.io/docs/language/modules/develop/index.html)", + "contents": "There are no installed providers found for the current open file.\n[Learn more about providers](https://www.terraform.io/docs/language/providers/index.html)", "when": "terraform.providers.noProviders === true" }, { diff --git a/src/providers/moduleCalls.ts b/src/providers/moduleCalls.ts index 9b67cd1e84..36a3d8701d 100644 --- a/src/providers/moduleCalls.ts +++ b/src/providers/moduleCalls.ts @@ -75,7 +75,7 @@ export class ModuleCallsDataProvider implements vscode.TreeDataProvider { + vscode.window.onDidChangeActiveTextEditor(async () => { // most of the time this is called when the user switches tabs or closes the file // we already check for state inside the getModule function, so we can just call refresh here this.refresh(); diff --git a/src/providers/moduleProviders.ts b/src/providers/moduleProviders.ts index bc5339e884..ee6bb7d6c4 100644 --- a/src/providers/moduleProviders.ts +++ b/src/providers/moduleProviders.ts @@ -37,7 +37,7 @@ export class ModuleProvidersDataProvider implements vscode.TreeDataProvider this.refresh()), - vscode.window.onDidChangeActiveTextEditor(async (event: vscode.TextEditor | undefined) => { + vscode.window.onDidChangeActiveTextEditor(async () => { // most of the time this is called when the user switches tabs or closes the file // we already check for state inside the getprovider function, so we can just call refresh here this.refresh();