Skip to content

Commit

Permalink
Fix EE intermittent issue with auto-completion (ansible#263)
Browse files Browse the repository at this point in the history
* Fix EE intermittent issue with auto-completion

*  Wait for async function to copy plugins from
   within EE to local host

* add changelog

* chore: auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
ganeshrn and pre-commit-ci[bot] committed Mar 14, 2022
1 parent 592c597 commit be65dfc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/changelog-fragments.d/263.bugfix.md
@@ -0,0 +1,3 @@
Fixed intermittent issue with execution environment for auto-completion and
hover by waiting for async function to copy plugins from within EE to local host
cache --{user}`ganeshrn`.
2 changes: 1 addition & 1 deletion src/services/executionEnvironment.ts
Expand Up @@ -82,7 +82,7 @@ export class ExecutionEnvironment {
);
return;
}
this.fetchPluginDocs();
await this.fetchPluginDocs();
} catch (error) {
if (error instanceof Error) {
this.connection.window.showErrorMessage(error.message);
Expand Down

0 comments on commit be65dfc

Please sign in to comment.