on master help sign in
0.0.11
51a44ediko
CHANGELOG.md+4
@@ -1,6 +1,10 @@
1# Change Log
1# Change Log
2
2
3
3
4+### 0.0.11
5+
6+Added the ability to specify the path to the executable.
7+
4### 0.0.10
8### 0.0.10
5
9
6Fixed off-by-one range bug.
10Fixed off-by-one range bug.
package.json+8−1
@@ -3,7 +3,7 @@
3 "displayName": "Ormolu",
3 "displayName": "Ormolu",
4 "publisher": "ilyakooo0",
4 "publisher": "ilyakooo0",
5 "description": "Haskell code formatter with ormolu",
5 "description": "Haskell code formatter with ormolu",
6− "version": "0.0.10",
6+ "version": "0.0.11",
7 "repository": {
7 "repository": {
8 "type": "git",
8 "type": "git",
9 "url": "https://github.com/ilyakooo0/vs-code-ormolu"
9 "url": "https://github.com/ilyakooo0/vs-code-ormolu"
@@ -128,6 +128,13 @@
128 ],
128 ],
129 "default": null,
129 "default": null,
130 "description": "Custom arguments to pass to ormolu."
130 "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."
131 }
138 }
132 }
139 }
133 }
140 }
src/extension.ts+1−1
@@ -23,7 +23,7 @@ export function activate(context: vscode.ExtensionContext) {
23
23
24 const cfg = vscode.workspace.getConfiguration("ormolu");
24 const cfg = vscode.workspace.getConfiguration("ormolu");
25
25
26− let command = "ormolu";
26+ let command = cfg.executablePath;
27
27
28 command += ` --start-line ${range.start.line + 1} --end-line ${range.end.line + (range.end.character == 0 ? 0 : 1)}`
28 command += ` --start-line ${range.start.line + 1} --end-line ${range.end.line + (range.end.character == 0 ? 0 : 1)}`
29
29