From 0303e17eda5ed584c3d8556c9c4740d40e77bbd4 Mon Sep 17 00:00:00 2001 From: Sheng Chen Date: Thu, 31 Oct 2024 14:39:51 +0800 Subject: [PATCH] Wait more time --- test/shared.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/shared.ts b/test/shared.ts index 92c01e3b..909dd17b 100644 --- a/test/shared.ts +++ b/test/shared.ts @@ -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(); }