From c65dad6ce33eb3db3591401cd0fdad7c06456bc3 Mon Sep 17 00:00:00 2001 From: Scott Dover Date: Mon, 17 Nov 2025 11:17:18 -0500 Subject: [PATCH] fix: fix test failure Signed-off-by: Scott Dover --- client/test/languageServer/formatter.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/test/languageServer/formatter.test.ts b/client/test/languageServer/formatter.test.ts index 350da0678..f20dcc2bc 100644 --- a/client/test/languageServer/formatter.test.ts +++ b/client/test/languageServer/formatter.test.ts @@ -5,16 +5,19 @@ import * as assert from "assert"; import { getTestFixtureContent, getUri, openDoc } from "../utils"; const expected = getTestFixtureContent("formatter/expected.sas").toString(); -describe("Formatter tests", () => { +// Re-enable this test after https://github.com/microsoft/vscode/issues/277352 is deployed. +describe.skip("Formatter tests", () => { it("formats sas code well", async () => { const docUri = getUri("formatter/unformatted.sas"); await openDoc(docUri); + // Executing the command `vscode.executeFormatDocumentProvider` to simulate triggering format const edits: vscode.TextEdit[] = await vscode.commands.executeCommand( "vscode.executeFormatDocumentProvider", docUri, {}, ); + const edit = new vscode.WorkspaceEdit(); edit.set(docUri, edits); await vscode.workspace.applyEdit(edit);