Skip to content

Commit

Permalink
Merge pull request #168 from davnn/master
Browse files Browse the repository at this point in the history
Fix `mathematica` settings to use to right options and use `-file` by default
  • Loading branch information
twibiral authored Nov 14, 2022
2 parents 9e7bfbe + e34503d commit cafbd36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ export default class ExecuteCodePlugin extends Plugin {
button.addEventListener("click", async () => {
button.className = runButtonDisabledClass;
const transformedCode = await new CodeInjector(this.app, this.settings, language).injectCode(srcCode);
this.runCodeInShell(transformedCode, out, button, this.settings.csPath, this.settings.csArgs, this.settings.mathematicaFileExtension, language, file);
this.runCodeInShell(transformedCode, out, button, this.settings.mathematicaPath, this.settings.mathematicaArgs, this.settings.mathematicaFileExtension, language, file);
});
} else if (language === "scala") {
button.addEventListener("click", async () => {
Expand Down
4 changes: 2 additions & 2 deletions src/settings/Settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ export const DEFAULT_SETTINGS: ExecutorSettings = {
ghcPath: "ghc",
ghciPath: "ghci",
useGhci: false,
haskellInject: "",
haskellInject: "",
mathematicaPath: "wolframscript",
mathematicaArgs: "",
mathematicaArgs: "-file",
mathematicaFileExtension: "wls",
mathematicaInject: "",
scalaPath: "scala",
Expand Down

0 comments on commit cafbd36

Please sign in to comment.