Skip to content

Commit

Permalink
Wait more time
Browse files Browse the repository at this point in the history
  • Loading branch information
jdneo committed Oct 31, 2024
1 parent fe0e194 commit 0303e17
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,14 @@ export function truePath(...paths: string[]) {
}

export async function setupTestEnv() {
await extensions.getExtension("redhat.java")!.activate();
const javaLs = extensions.getExtension("redhat.java");
if (!javaLs) {
throw new Error("Java language support extension is not found");
}
await javaLs.activate();
const api = javaLs.exports;
await api.serverReady();

await extensions.getExtension("vscjava.vscode-java-dependency")!.activate();
}

Expand Down

0 comments on commit 0303e17

Please sign in to comment.