Skip to content

Commit

Permalink
Bump to version 0.1.48 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaprieto committed Jun 10, 2023
1 parent 260354c commit f1b941f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 21 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.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "juvix-mode",
"version": "0.1.47",
"version": "0.1.48",
"license": "GPL-3.0",
"description": "Juvix Mode for VSCode",
"displayName": "Juvix",
Expand Down Expand Up @@ -110,7 +110,7 @@
{
"scope": "constructor",
"settings": {
"foreground": "#7307e0c9"
"foreground": "#8d8dff"
}
},
{
Expand Down Expand Up @@ -188,7 +188,7 @@
{
"scope": "constructor",
"settings": {
"foreground": "#ba8bea"
"foreground": "#8d8dff"
}
},
{
Expand Down Expand Up @@ -264,7 +264,7 @@
"fontStyle": "italic"
},
"constructor": {
"foreground": "#5656e2"
"foreground": "#8d8dff"
},
"error": {
"foreground": "#ed1452",
Expand Down Expand Up @@ -303,7 +303,7 @@
"fontStyle": "italic"
},
"constructor": {
"foreground": "#5656e2"
"foreground": "#8d8dff"
},
"error": {
"foreground": "#ed1452",
Expand Down
4 changes: 2 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export class JuvixConfig {
public getJuvixExec(): string {
let binPath = this.binaryPath.get();
let binName = this.binaryName.get();
logger.debug(`binPath: ${binPath}`);
logger.debug(`binName: ${binName}`);
// logger.debug(`binPath: ${binPath}`);
// logger.debug(`binName: ${binName}`);
return path.join(binPath, binName);
}

Expand Down
13 changes: 2 additions & 11 deletions src/formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,12 @@ export function activate(_context: vscode.ExtensionContext) {
encoding: 'utf8',
});

logger.debug(`format: ${formatterCall}`);
logger.debug(`stdout: ${ls.stdout}`);

// already formatted
if (ls.status == 0) {
const stdout = ls.stdout;
return [];
return [vscode.TextEdit.replace(range, stdout)];
} else {
// not formatted and return the formatted stdout
if (ls.stdout != '') {
return [vscode.TextEdit.replace(range, ls.stdout)];
}
// else it is formatting error
const errMsg: string = ls.stderr.toString();
logger.error(errMsg, 'formatter.ts');
logger.warn(errMsg);
return [];
}
},
Expand Down
2 changes: 1 addition & 1 deletion syntaxes/Juvix.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"name": "keyword"
},
{
"name": "axiom",
"name": "delimiter",
"match": "(;)"
},
{
Expand Down

0 comments on commit f1b941f

Please sign in to comment.