@@ -15,18 +15,17 @@ export function activate(context: vscode.ExtensionContext) {
1515 return [];
1616 };
1717
18− const cfg = vscode.workspace.getConfiguration("ormolu");
19−
2018 try {
21− proc.execSync(cfg.executablePath + ' --help');
19+ proc.execSync('ormolu --help');
2220 } catch (e) {
2321 return showErrorMessage("Ormolu is not installed", e);
2422 }
2523
26− let command = cfg.executablePath;
24+ const cfg = vscode.workspace.getConfiguration("ormolu");
25+
26+ let command = "ormolu";
2727
2828 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}`
3029
3130 for (let [key, value] of Object.entries(cfg.extensions)) {
3231 if (value) {