Skip to content

Commit 377dd28

Browse files
committed
renamed config
1 parent c0facfe commit 377dd28

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ All notable changes to the *Haskell Runner 2* will be documented in this file.
88
- support for sending selected code to ghci
99
- add keybindings for `Send to GHCi` (shortcut: `ctrl+alt+right`)
1010
- allow dynamically choose tool for `ghci`
11+
- rename config `stackRepl` to `replTool`
1112

1213
## [0.1.3]
1314

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The following configurations are available:
2020

2121
- `runner2.ghciPath`: path for GHCi (default `ghci`)
2222
- `runner2.stackPath`: path for stack executable (default `stack`)
23-
- `runner2.stackRepl`: by `default`, it uses `ghci` in single file and use `stack repl` in stack project, can be overridden by choosing other options (`ghci` for ghci only, and `stack` for stack repl only)
23+
- `runner2.replTool`: by `default`, it uses `ghci` in single file and use `stack repl` in stack project, can be overridden by choosing other options (`ghci` for ghci only, and `stack` for stack repl only)
2424
- `runner2.stackRun`: show "Stack Run" button, *reload required* (default `false`)
2525

2626
## Release Notes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"default": "stack",
6666
"description": "Path to stack executable"
6767
},
68-
"runner2.stackRepl": {
68+
"runner2.replTool": {
6969
"type": "string",
7070
"enum": [
7171
"default",

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function getConfig(): Config {
1414
const config = vscode.workspace.getConfiguration();
1515
const ghci = config.get("runner2.ghciPath", "ghci");
1616
const stack = config.get("runner2.stackPath", "stack");
17-
const mode = config.get<Mode>("runner2.stackRepl", "default");
17+
const mode = config.get<Mode>("runner2.replTool", "default");
1818
let tool = (proj: boolean) => {
1919
let repl = stack + " repl";
2020
switch (mode) {

0 commit comments

Comments
 (0)