Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
Traineratwot committed May 27, 2021
1 parent e5f17eb commit 58478cf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
6 changes: 3 additions & 3 deletions core/icX.diagnostics.js

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

6 changes: 3 additions & 3 deletions core/icX.diagnostics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class IcXDiagnostics extends Ic10Diagnostics {
var code = doc.getText()
var compiler = new icX(code,icxOptions)
var test = compiler.alalize()
var b = Math.abs(test.vars.empty.length - 16)
var p = b / 16 * 100
var b = Math.abs(test.vars.empty.length - 15)
var p = b / 15 * 100
var linesCount = test.result.split('\n').length
if (linesCount > 128) {
diagnostics.push(this.createDiagnostic(new vscode.Range(0, 0, 0, 1), 'Max line', vscode.DiagnosticSeverity.Error))
Expand All @@ -52,7 +52,7 @@ class IcXDiagnostics extends Ic10Diagnostics {
<ol>
<span>left vars:</span> <span>${test.vars.empty.length}</span>
<ol>
<div id="leftVarsCounter" class="progress" percent="${p}" value="${b}" max="16" min="0">
<div id="leftVarsCounter" class="progress" percent="${p}" value="${b}" max="15" min="0">
<div></div>
</div>
</ol>
Expand Down
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@
"name": "stationeers-ic10",
"displayName": "Stationeers ic10",
"description": "Ic10 support",
"version": "0.0.29",
"version": "0.1.1",
"license": "MIT",
"homepage": "https://github.com/Traineratwot/vscode-stationeers-ic10",
"galleryBanner": {
"theme": "dark"
},
"type": "commonjs",
"scripts": {
"start": "tsc -w",
Expand Down

0 comments on commit 58478cf

Please sign in to comment.