From 5870b74945944fc3d35665eca8aa260e32dadd8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaros=C5=82aw=20Glego=C5=82a?= <35625949+KostkaBrukowa@users.noreply.github.com> Date: Fri, 26 Apr 2024 14:33:03 +0200 Subject: [PATCH] test --- e2e/plugin/utils/getDiagnostics.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/e2e/plugin/utils/getDiagnostics.ts b/e2e/plugin/utils/getDiagnostics.ts index 3461587..3adc413 100644 --- a/e2e/plugin/utils/getDiagnostics.ts +++ b/e2e/plugin/utils/getDiagnostics.ts @@ -14,7 +14,12 @@ export async function getDiagnostics(projectPath: string, filePath: string) { const fileContent = readFileSync(file, 'utf-8'); - server.send({ command: 'open', arguments: { file, fileContent, scriptKindName: 'TS' } }); + server.send({ + command: 'updateOpen', + arguments: { + openFiles: [{ file: file, fileContent, scriptKindName: 'TS', projectRootPath: projectPath }], + }, + }); await server.waitEvent('projectLoadingFinish');