From 22048d6ba67a1d8b255f8a39ce4640bedce7c919 Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Sat, 13 Nov 2021 19:35:44 -0500 Subject: [PATCH] await compiel --- src/Terminal/determineAllPossibilitiesForTabCompletion.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Terminal/determineAllPossibilitiesForTabCompletion.ts b/src/Terminal/determineAllPossibilitiesForTabCompletion.ts index 11bd431f6..3194623cb 100644 --- a/src/Terminal/determineAllPossibilitiesForTabCompletion.ts +++ b/src/Terminal/determineAllPossibilitiesForTabCompletion.ts @@ -302,7 +302,7 @@ export async function determineAllPossibilitiesForTabCompletion( const script = currServ.scripts.find((script) => script.filename === filename); if (!script) return; // Doesn't exist. if (!script.module) { - compile(script, currServ.scripts); + await compile(script, currServ.scripts); } const loadedModule = await script.module; if (!loadedModule.autocomplete) return; // Doesn't have an autocomplete function.