Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
KostkaBrukowa committed Apr 26, 2024
1 parent 3c8de78 commit 5870b74
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion e2e/plugin/utils/getDiagnostics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit 5870b74

Please sign in to comment.