Skip to content

Commit

Permalink
basePath
Browse files Browse the repository at this point in the history
  • Loading branch information
pizza-777 committed Sep 8, 2023
1 parent 442f872 commit c6a821e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "solidity-support",
"displayName": "Everscale Solidity Support",
"description": "Everscale Solidity Language for Visual Studio Code",
"version": "1.4.44",
"version": "1.4.46",
"keywords": [
"solidity",
"ton-solidity",
Expand Down
2 changes: 2 additions & 0 deletions src/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ async function updateDiagnostics(document, collection) {
args['file'] = filePath;
args['outputDir'] = path.resolve(__dirname, 'abi');
args['includePath'] = path.resolve(vscode.workspace.workspaceFolders[0].uri.fsPath, "node_modules");
args['basePath'] = vscode.workspace.workspaceFolders[0].uri.fsPath;
let r = await runCommand(compileCommand, args);

if (r == undefined) {
Expand Down Expand Up @@ -276,6 +277,7 @@ async function getAst(document) {
const compileCommand = controllers[1].commands[2];
const args = [];
args['file'] = document.uri.fsPath;
args['basePath'] = vscode.workspace.workspaceFolders[0].uri.fsPath;
const outputDir = path.resolve(__dirname, `abi/${path.parse(document.uri.fsPath).name}`);
cleanDir(outputDir);

Expand Down

0 comments on commit c6a821e

Please sign in to comment.