Skip to content

Commit

Permalink
Skip SorbetClient on Windows since Sorbet isn't available
Browse files Browse the repository at this point in the history
  • Loading branch information
KaanOzkan committed Aug 21, 2024
1 parent d5613a9 commit d6a7243
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vscode/src/test/suite/sorbetClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))),
);
Expand Down
3 changes: 3 additions & 0 deletions vscode/src/workspace.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import os from "os";

import * as vscode from "vscode";
import { CodeLens, State } from "vscode-languageclient/node";

Expand Down Expand Up @@ -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"),
));
Expand Down

0 comments on commit d6a7243

Please sign in to comment.