From be65dfca83fdff0d4d4ae5909b92cf55f3f79e0e Mon Sep 17 00:00:00 2001 From: Ganesh Nalawade Date: Mon, 14 Mar 2022 19:35:32 +0530 Subject: [PATCH] Fix EE intermittent issue with auto-completion (#263) * 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> --- docs/changelog-fragments.d/263.bugfix.md | 3 +++ src/services/executionEnvironment.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 docs/changelog-fragments.d/263.bugfix.md diff --git a/docs/changelog-fragments.d/263.bugfix.md b/docs/changelog-fragments.d/263.bugfix.md new file mode 100644 index 00000000..2b8a2370 --- /dev/null +++ b/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`. diff --git a/src/services/executionEnvironment.ts b/src/services/executionEnvironment.ts index 387eac01..74fd92af 100644 --- a/src/services/executionEnvironment.ts +++ b/src/services/executionEnvironment.ts @@ -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);