From 4ca7a519d4bed7902b86e0fd1da8f61c83458c53 Mon Sep 17 00:00:00 2001 From: 0xMemoryGrinder <35138272+0xMemoryGrinder@users.noreply.github.com> Date: Fri, 15 Dec 2023 19:30:28 +0100 Subject: [PATCH] fix(solidity/extension): compilation errors after rebase --- toolchains/solidity/extension/src/extension.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/toolchains/solidity/extension/src/extension.ts b/toolchains/solidity/extension/src/extension.ts index 398437c2..19362bcb 100644 --- a/toolchains/solidity/extension/src/extension.ts +++ b/toolchains/solidity/extension/src/extension.ts @@ -19,11 +19,11 @@ let testsPositionsClient: LanguageClient; let testManager: TestManager; export async function activate(context: ExtensionContext) { - linterClient = createLinterClient(context); + linterClient = await createLinterClient(context); foundryCompilerClient = createFoundryCompilerClient(context); testsPositionsClient = await createTestsPositionsClient(context); - if (vscode.workspace.workspaceFolders?.length) - testManager = new TestManager(testsPositionsClient, vscode.workspace.workspaceFolders[0].uri.fsPath); + if (workspace.workspaceFolders?.length) + testManager = new TestManager(testsPositionsClient, workspace.workspaceFolders[0].uri.fsPath); // Push the disposable to the context's subscriptions so that the // client can be deactivated on extension deactivation @@ -32,7 +32,7 @@ export async function activate(context: ExtensionContext) { const folders = workspace.workspaceFolders; if (folders) { - const files = await vscode.workspace.findFiles('**/*.sol', `${folders[0].uri.fsPath}/**`); + const files = await workspace.findFiles('**/*.sol', `${folders[0].uri.fsPath}/**`); files.forEach(file => { if (!file.path.includes('forge-std')) workspace.openTextDocument(file);