Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions editors/vscode/tests/e2e_server.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ suite('E2E Diagnostics', () => {
testSingleFolderMode('detects diagnostics on run', async () =>
{
await loadFixture('lint_on_run');
await sleep(250);
const diagnostics = await getDiagnosticsWithoutClose(`onType.ts`);
strictEqual(diagnostics.length, 0);

Expand All @@ -91,6 +92,7 @@ suite('E2E Diagnostics', () => {

test('empty oxlint configuration behaves like default configuration', async () => {
await loadFixture('debugger_empty_config');
await sleep(250);
const diagnostics = await getDiagnostics('debugger.js');

strictEqual(diagnostics.length, 1);
Expand Down
4 changes: 2 additions & 2 deletions editors/vscode/tests/test-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export async function activateExtension(full: boolean = true): Promise<void> {
const fileUri = Uri.joinPath(fixturesWorkspaceUri(), 'fixtures', 'debugger.js');
await window.showTextDocument(fileUri);
// wait for initialized requests
await sleep(500);
await sleep(250);
await commands.executeCommand('workbench.action.closeActiveEditor');
}
}
Expand Down Expand Up @@ -109,7 +109,7 @@ export async function getDiagnostics(file: string, workspaceDir: Uri = fixturesW
export async function getDiagnosticsWithoutClose(file: string, workspaceDir: Uri = fixturesWorkspaceUri()): Promise<Diagnostic[]> {
const fileUri = Uri.joinPath(workspaceDir, 'fixtures', file);
await window.showTextDocument(fileUri);
await sleep(500);
await sleep(250);
const diagnostics = languages.getDiagnostics(fileUri);
return diagnostics;
}
Expand Down
Loading