diff --git a/.gitignore b/.gitignore index dab1691..dbbab44 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ .vscode/ wacc-examples/ .idea/ +**/.temp_wacc_file.* \ No newline at end of file diff --git a/wacc-syntax/extension.js b/wacc-syntax/extension.js index 0c3f3ec..e6d2384 100644 --- a/wacc-syntax/extension.js +++ b/wacc-syntax/extension.js @@ -40,13 +40,13 @@ function generateErrors(code, filePath) { let output; try { - const waccExePath = `${__dirname}/../wacc-compiler`; - output = execSync(`${waccExePath} ${tmpFilePath}`, { encoding: 'utf8', stdio: 'pipe' }); + const waccExePath = `${__dirname}/wacc-compiler`; + output = execSync(`${waccExePath} ${tmpFilePath}`, { encoding: 'utf8', shell: true, stdio: 'pipe'}); } catch (err) { console.log("Error running compiler"); output = err.stdout; console.log(output); - } + } let errors = []; errorRegex = /\(line ([\d]+), column ([\d]+)\):\n([^>]+)([^\^]+)([\^]+)\n([^\n]+)([^\(]*)/g while((match = errorRegex.exec(output)) !== null) { diff --git a/wacc-syntax/icon.png b/wacc-syntax/icon.png new file mode 100644 index 0000000..6e444a5 Binary files /dev/null and b/wacc-syntax/icon.png differ diff --git a/wacc-syntax/package.json b/wacc-syntax/package.json index debe1de..096e897 100644 --- a/wacc-syntax/package.json +++ b/wacc-syntax/package.json @@ -3,6 +3,8 @@ "displayName": "intelliWACC", "description": "WACC language support features", "version": "0.0.1", + "publisher": "WACC-37-2025", + "icon": "icon.png", "engines": { "vscode": "^1.97.0" }, diff --git a/wacc-compiler b/wacc-syntax/wacc-compiler similarity index 70% rename from wacc-compiler rename to wacc-syntax/wacc-compiler index a23eea8..b82298b 100755 Binary files a/wacc-compiler and b/wacc-syntax/wacc-compiler differ diff --git a/wacc-syntax/wacc-syntax-0.0.1.vsix b/wacc-syntax/wacc-syntax-0.0.1.vsix index 0889722..3b4cec5 100644 Binary files a/wacc-syntax/wacc-syntax-0.0.1.vsix and b/wacc-syntax/wacc-syntax-0.0.1.vsix differ