From def650ebdd789154bb5b21f54eae7b52ad397598 Mon Sep 17 00:00:00 2001 From: Eric Lau Date: Mon, 9 May 2022 22:40:12 -0400 Subject: [PATCH] Initialize package search paths on completion --- server/src/server.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/src/server.ts b/server/src/server.ts index 7b6b774..fca6f05 100644 --- a/server/src/server.ts +++ b/server/src/server.ts @@ -1030,6 +1030,8 @@ enum SyntaxType { // This handler provides the initial list of the completion items. connection.onCompletion( async (textDocPositionParams: TextDocumentPositionParams): Promise => { + await initPackageSearchPaths(textDocPositionParams.textDocument.uri); + const completionItems: CompletionItem[] = []; const textDocumentFromURI = documents.get(textDocPositionParams.textDocument.uri);