-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set Juvix binary path in user settings and some other revisions (#110)
- Fix #109
- Loading branch information
1 parent
d5e5f9f
commit 567d0f3
Showing
7 changed files
with
142 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,8 @@ | |
"onLanguage:JuvixAsm", | ||
"onLanguage:JuvixCore", | ||
"onLanguage:JuvixGeb", | ||
"onLanguage:VampIR" | ||
"onLanguage:VampIR", | ||
"onCommand:juvix-mode.installJuvixBinary" | ||
], | ||
"main": "./out/extension.js", | ||
"scripts": { | ||
|
@@ -486,6 +487,11 @@ | |
} | ||
], | ||
"commands": [ | ||
{ | ||
"command": "juvix-mode.installJuvixBinary", | ||
"title": "Install Juvix Binary", | ||
"category": "Juvix" | ||
}, | ||
{ | ||
"command": "juvix-mode.getBinaryVersion", | ||
"title": "about", | ||
|
@@ -705,77 +711,77 @@ | |
"menus": { | ||
"editor/title": [ | ||
{ | ||
"when": "editorLangId == Juvix || editorLangId == JuvixCore || editorLangId == JuvixGeb", | ||
"when": "juvix-mode:ready && (editorLangId == Juvix || editorLangId == JuvixCore || editorLangId == JuvixGeb)", | ||
"command": "juvix-mode.loadFileRepl", | ||
"group": "navigation@0" | ||
}, | ||
{ | ||
"when": "editorLangId == Juvix", | ||
"when": "juvix-mode:ready && editorLangId == Juvix", | ||
"command": "juvix-mode.typecheck", | ||
"group": "navigation@1" | ||
}, | ||
{ | ||
"when": "editorLangId == Juvix", | ||
"when": "juvix-mode:ready && editorLangId == Juvix", | ||
"command": "juvix-mode.compile", | ||
"group": "navigation@2" | ||
}, | ||
{ | ||
"when": "editorLangId == Juvix", | ||
"when": "juvix-mode:ready && editorLangId == Juvix", | ||
"command": "juvix-mode.run", | ||
"group": "navigation@3" | ||
}, | ||
{ | ||
"when": "editorLangId == JuvixCore", | ||
"when": "juvix-mode:ready && editorLangId == JuvixCore", | ||
"command": "juvix-mode.core-compile", | ||
"group": "navigation@2" | ||
}, | ||
{ | ||
"when": "editorLangId == JuvixCore", | ||
"when": "juvix-mode:ready && editorLangId == JuvixCore", | ||
"command": "juvix-mode.core-eval", | ||
"group": "navigation@3" | ||
}, | ||
{ | ||
"when": "editorLangId == JuvixGeb", | ||
"when": "juvix-mode:ready && editorLangId == JuvixGeb", | ||
"command": "juvix-mode.geb-check", | ||
"group": "navigation@1" | ||
}, | ||
{ | ||
"when": "editorLangId == JuvixGeb", | ||
"when": "juvix-mode:ready && editorLangId == JuvixGeb", | ||
"command": "juvix-mode.geb-compile", | ||
"group": "navigation@2" | ||
}, | ||
{ | ||
"when": "editorLangId == JuvixGeb", | ||
"when": "juvix-mode:ready && editorLangId == JuvixGeb", | ||
"command": "juvix-mode.geb-eval", | ||
"group": "navigation@3" | ||
}, | ||
{ | ||
"when": "editorLangId == VampIR", | ||
"when": "juvix-mode:ready && editorLangId == VampIR", | ||
"command": "juvix-mode.vampir-setup", | ||
"group": "navigation@0" | ||
}, | ||
{ | ||
"when": "editorLangId == VampIR", | ||
"when": "juvix-mode:ready && editorLangId == VampIR", | ||
"command": "juvix-mode.vampir-compile", | ||
"group": "navigation@1" | ||
}, | ||
{ | ||
"when": "editorLangId == VampIR", | ||
"when": "juvix-mode:ready && editorLangId == VampIR", | ||
"command": "juvix-mode.vampir-prove", | ||
"group": "navigation@2" | ||
}, | ||
{ | ||
"when": "editorLangId == VampIR", | ||
"when": "juvix-mode:ready && editorLangId == VampIR", | ||
"command": "juvix-mode.vampir-verify", | ||
"group": "navigation@3" | ||
}, | ||
{ | ||
"when": "editorLangId == Juvix", | ||
"when": "juvix-mode:ready && editorLangId == Juvix", | ||
"command": "juvix-mode.createOrShowJudoc", | ||
"group": "navigation@4" | ||
}, | ||
{ | ||
"when": "editorLangId == Juvix", | ||
"when": "juvix-mode:ready && editorLangId == Juvix", | ||
"command": "juvix-mode.createOrShowJudocOnlySource", | ||
"group": "navigation@5" | ||
} | ||
|
@@ -784,7 +790,7 @@ | |
{ | ||
"submenu": "juvix-submenu", | ||
"group": "navigation", | ||
"when": "editorLangId == Juvix" | ||
"when": "juvix-mode:ready && editorLangId == Juvix" | ||
} | ||
], | ||
"juvix-submenu": [ | ||
|
@@ -803,23 +809,27 @@ | |
{ | ||
"command": "juvix-mode.doctor", | ||
"group": "[email protected]" | ||
}, | ||
{ | ||
"command": "juvix-mode.createOrShowJudoc", | ||
"group": "[email protected]" | ||
} | ||
] | ||
}, | ||
"configuration": { | ||
"title": "Juvix Mode", | ||
"properties": { | ||
"juvix-mode.bin.name": { | ||
"juvix-mode.juvixBinName": { | ||
"type": "string", | ||
"default": "juvix", | ||
"scope": "machine-overridable", | ||
"description": "Name of the executable of Juvix. (e.g. juvix-v0.3.0)" | ||
}, | ||
"juvix-mode.bin.path": { | ||
"juvix-mode.juvixBinPath": { | ||
"type": "string", | ||
"default": "", | ||
"scope": "machine-overridable", | ||
"description": "Absolute path to the executable of Juvix. (e.g. /usr/local/bin/)" | ||
"description": "Absolute path where the Juvix binary is located (e.g. /usr/local/bin/)" | ||
}, | ||
"juvix-mode.vampirBinName": { | ||
"type": "string", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.