Skip to content

Commit

Permalink
Remove async, restore cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Arcticae committed Nov 13, 2024
1 parent 2c14ad2 commit 9623499
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vscode-cairo/src/cairols.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ export async function setupLanguageServer(ctx: Context): Promise<lc.LanguageClie
const executables = (
await Promise.all(
(vscode.workspace.workspaceFolders || []).map(
async (workspaceFolder) => await getLanguageServerExecutable(workspaceFolder, ctx),
(workspaceFolder) => getLanguageServerExecutable(workspaceFolder, ctx),
),
)
).filter((x) => !!x);
).filter((x) => !!x) as LSExecutable[];

const sameProvider = await allFoldersHaveSameLSProvider(ctx, executables);
assert(sameProvider, "Multiple versions of scarb in one workspace is not supported");
Expand Down

0 comments on commit 9623499

Please sign in to comment.