Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
Initialize package search paths on completion
Browse files Browse the repository at this point in the history
  • Loading branch information
ericglau committed May 10, 2022
1 parent 8f765fc commit def650e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,8 @@ enum SyntaxType {
// This handler provides the initial list of the completion items.
connection.onCompletion(
async (textDocPositionParams: TextDocumentPositionParams): Promise<CompletionItem[]> => {
await initPackageSearchPaths(textDocPositionParams.textDocument.uri);

const completionItems: CompletionItem[] = [];

const textDocumentFromURI = documents.get(textDocPositionParams.textDocument.uri);
Expand Down

0 comments on commit def650e

Please sign in to comment.