Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
fix(solidity/extension): compilation errors after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmemorygrinder committed Dec 15, 2023
1 parent 51bee47 commit 4ca7a51
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions toolchains/solidity/extension/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
Expand Down

0 comments on commit 4ca7a51

Please sign in to comment.