From 0ae5d40890350b61ce5e1b865b3265a6f34c6d64 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Thu, 2 Apr 2026 13:43:01 -0400 Subject: [PATCH] Silence compiler warning in smoke tests Signed-off-by: David Thompson --- smoke-test/smoke.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/smoke-test/smoke.test.ts b/smoke-test/smoke.test.ts index 21f836d3..a762f2d1 100644 --- a/smoke-test/smoke.test.ts +++ b/smoke-test/smoke.test.ts @@ -17,6 +17,9 @@ suite('Smoke test suite', function () { let unformattedUri: URI; this.beforeAll(async function () { + if (vscode.workspace.workspaceFolders === undefined) { + assert.fail('No workspace folder'); + } const workspaceUri = vscode.workspace.workspaceFolders[0].uri; schemaInstanceUri = workspaceUri.with({ path: workspaceUri.path + (workspaceUri.path.endsWith('/') ? '' : '/') + SCHEMA_INSTANCE_NAME,