on master help sign in
0.0.11
commit51a44eda58f6754f38f9f2301f8c117e9be28331 authoriko <ilyakooo0@gmail.com> dateThu 18 Mar 2021, 12:46 (6 years ago) parent4ca3282
3 files changed+13−2
CHANGELOG.md+4 package.json+8−1 src/extension.ts+1−1
CHANGELOG.md+4
@@ -1,6 +1,10 @@
11# Change Log
22
33
4+### 0.0.11
5+
6+Added the ability to specify the path to the executable.
7+
48### 0.0.10
59
610Fixed off-by-one range bug.
package.json+8−1
@@ -3,7 +3,7 @@
33 "displayName": "Ormolu",
44 "publisher": "ilyakooo0",
55 "description": "Haskell code formatter with ormolu",
6− "version": "0.0.10",
6+ "version": "0.0.11",
77 "repository": {
88 "type": "git",
99 "url": "https://github.com/ilyakooo0/vs-code-ormolu"
@@ -128,6 +128,13 @@
128128 ],
129129 "default": null,
130130 "description": "Custom arguments to pass to ormolu."
131+ },
132+ "ormolu.executablePath": {
133+ "type": [
134+ "string"
135+ ],
136+ "default": "ormolu",
137+ "description": "The path to the ormolu executable to use."
131138 }
132139 }
133140 }
src/extension.ts+1−1
@@ -23,7 +23,7 @@ export function activate(context: vscode.ExtensionContext) {
2323
2424 const cfg = vscode.workspace.getConfiguration("ormolu");
2525
26− let command = "ormolu";
26+ let command = cfg.executablePath;
2727
2828 command += ` --start-line ${range.start.line + 1} --end-line ${range.end.line + (range.end.character == 0 ? 0 : 1)}`
2929