Skip to content

Commit f6b92bc

Browse files
committed
Update config files for new fourmolu option
1 parent ce4da10 commit f6b92bc

8 files changed

+36
-8
lines changed

test/testdata/schema/ghc92/default-config.golden.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
},
3737
"fourmolu": {
3838
"config": {
39-
"external": false
39+
"external": false,
40+
"path": "fourmolu"
4041
}
4142
},
4243
"gadt": {

test/testdata/schema/ghc92/vscode-extension-schema.golden.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,16 @@
7373
},
7474
"haskell.plugin.fourmolu.config.external": {
7575
"default": false,
76-
"markdownDescription": "Call out to an external \"fourmolu\" executable, rather than using the bundled library",
76+
"markdownDescription": "Call out to an external \"fourmolu\" executable, rather than using the bundled library.",
7777
"scope": "resource",
7878
"type": "boolean"
7979
},
80+
"haskell.plugin.fourmolu.config.path": {
81+
"default": "fourmolu",
82+
"markdownDescription": "Set path to executable (for \"external\" mode).",
83+
"scope": "resource",
84+
"type": "string"
85+
},
8086
"haskell.plugin.gadt.globalOn": {
8187
"default": true,
8288
"description": "Enables gadt plugin",

test/testdata/schema/ghc94/default-config.golden.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
},
3737
"fourmolu": {
3838
"config": {
39-
"external": false
39+
"external": false,
40+
"path": "fourmolu"
4041
}
4142
},
4243
"gadt": {

test/testdata/schema/ghc94/vscode-extension-schema.golden.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,16 @@
7373
},
7474
"haskell.plugin.fourmolu.config.external": {
7575
"default": false,
76-
"markdownDescription": "Call out to an external \"fourmolu\" executable, rather than using the bundled library",
76+
"markdownDescription": "Call out to an external \"fourmolu\" executable, rather than using the bundled library.",
7777
"scope": "resource",
7878
"type": "boolean"
7979
},
80+
"haskell.plugin.fourmolu.config.path": {
81+
"default": "fourmolu",
82+
"markdownDescription": "Set path to executable (for \"external\" mode).",
83+
"scope": "resource",
84+
"type": "string"
85+
},
8086
"haskell.plugin.gadt.globalOn": {
8187
"default": true,
8288
"description": "Enables gadt plugin",

test/testdata/schema/ghc96/default-config.golden.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
},
3737
"fourmolu": {
3838
"config": {
39-
"external": false
39+
"external": false,
40+
"path": "fourmolu"
4041
}
4142
},
4243
"gadt": {

test/testdata/schema/ghc96/vscode-extension-schema.golden.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,16 @@
7373
},
7474
"haskell.plugin.fourmolu.config.external": {
7575
"default": false,
76-
"markdownDescription": "Call out to an external \"fourmolu\" executable, rather than using the bundled library",
76+
"markdownDescription": "Call out to an external \"fourmolu\" executable, rather than using the bundled library.",
7777
"scope": "resource",
7878
"type": "boolean"
7979
},
80+
"haskell.plugin.fourmolu.config.path": {
81+
"default": "fourmolu",
82+
"markdownDescription": "Set path to executable (for \"external\" mode).",
83+
"scope": "resource",
84+
"type": "string"
85+
},
8086
"haskell.plugin.gadt.globalOn": {
8187
"default": true,
8288
"description": "Enables gadt plugin",

test/testdata/schema/ghc98/default-config.golden.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
},
3333
"fourmolu": {
3434
"config": {
35-
"external": false
35+
"external": false,
36+
"path": "fourmolu"
3637
}
3738
},
3839
"ghcide-completions": {

test/testdata/schema/ghc98/vscode-extension-schema.golden.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,16 @@
6161
},
6262
"haskell.plugin.fourmolu.config.external": {
6363
"default": false,
64-
"markdownDescription": "Call out to an external \"fourmolu\" executable, rather than using the bundled library",
64+
"markdownDescription": "Call out to an external \"fourmolu\" executable, rather than using the bundled library.",
6565
"scope": "resource",
6666
"type": "boolean"
6767
},
68+
"haskell.plugin.fourmolu.config.path": {
69+
"default": "fourmolu",
70+
"markdownDescription": "Set path to executable (for \"external\" mode).",
71+
"scope": "resource",
72+
"type": "string"
73+
},
6874
"haskell.plugin.ghcide-completions.config.autoExtendOn": {
6975
"default": true,
7076
"markdownDescription": "Extends the import list automatically when completing a out-of-scope identifier",

0 commit comments

Comments
 (0)