@@ -15,18 +15,17 @@ export function activate(context: vscode.ExtensionContext) {
15 return [];
15 return [];
18− const cfg = vscode.workspace.getConfiguration("ormolu");
21− proc.execSync(cfg.executablePath + ' --help');
19+ proc.execSync('ormolu --help');
22 } catch (e) {
20 } catch (e) {
23 return showErrorMessage("Ormolu is not installed", e);
21 return showErrorMessage("Ormolu is not installed", e);
24+ const cfg = vscode.workspace.getConfiguration("ormolu");
26 let command = cfg.executablePath;
26 let command = cfg.executablePath;
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}`
31 for (let [key, value] of Object.entries(cfg.extensions)) {
30 for (let [key, value] of Object.entries(cfg.extensions)) {
32 if (value) {
31 if (value) {