on master help sign in
package.json+2−2
since splitsnapshots
unifiedsplit
@@ -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.11",
6+ "version": "0.0.12",
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"
@@ -160,4 +160,4 @@
160 "tslint": "^5.12.1",
160 "tslint": "^5.12.1",
161 "vscode-test": "^1.2.0"
161 "vscode-test": "^1.2.0"
162 }
162 }
163−}
163+}
src/extension.ts+1
@@ -26,6 +26,7 @@ export function activate(context: vscode.ExtensionContext) {
26 let command = cfg.executablePath;
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+ command += ` --stdin-input-file ${document.fileName}`
29
30
30 for (let [key, value] of Object.entries(cfg.extensions)) {
31 for (let [key, value] of Object.entries(cfg.extensions)) {
31 if (value) {
32 if (value) {