diff --git a/vscode/src/test/suite/sorbetClient.test.ts b/vscode/src/test/suite/sorbetClient.test.ts index 28903602a..ebe71baf6 100644 --- a/vscode/src/test/suite/sorbetClient.test.ts +++ b/vscode/src/test/suite/sorbetClient.test.ts @@ -149,6 +149,12 @@ async function launchClient(workspaceUri: vscode.Uri) { } suite("SorbetClient", () => { + if (os.platform() === "win32") { + // eslint-disable-next-line no-console + console.log("Skipping SorbetClient tests on Windows"); + return; + } + const workspacePath = path.dirname( path.dirname(path.dirname(path.dirname(__dirname))), ); diff --git a/vscode/src/workspace.ts b/vscode/src/workspace.ts index 9adbc049a..369935a3d 100644 --- a/vscode/src/workspace.ts +++ b/vscode/src/workspace.ts @@ -1,3 +1,5 @@ +import os from "os"; + import * as vscode from "vscode"; import { CodeLens, State } from "vscode-languageclient/node"; @@ -118,6 +120,7 @@ export class Workspace implements WorkspaceInterface { try { shouldLaunchSorbetClient = !vscode.extensions.getExtension("sorbet.sorbet-vscode-extension") && + os.platform() !== "win32" && (await vscode.workspace.fs.readFile( vscode.Uri.joinPath(this.workspaceFolder.uri, "sorbet/config"), ));