@@ -3,7 +3,7 @@
33 "displayName": "Ormolu",
44 "publisher": "ilyakooo0",
55 "description": "Haskell code formatter with ormolu",
6− "version": "0.0.1",
6+ "version": "0.0.2",
77 "repository": {
88 "type": "git",
99 "url": "https://github.com/ilyakooo0/vs-code-ormolu"
@@ -15,19 +15,127 @@
1515 "Formatters"
1616 ],
1717 "main": "./out/extension.js",
18− "contributes": {
19− "languages": [
20− {
21− "id": "haskell",
22− "aliases": [
23− "Haskell"
24− ]
25− }
26− ]
27− },
28− "activationEvents": [
29− "onLanguage:haskell"
30− ],
18+ "contributes": {
19+ "languages": [
20+ {
21+ "id": "haskell",
22+ "aliases": [
23+ "Haskell"
24+ ]
25+ }
26+ ],
27+ "configuration": {
28+ "title": "Ormolu",
29+ "properties": {
30+ "ormolu.extensions.AlternativeLayoutRule": {
31+ "type": "boolean",
32+ "default": false,
33+ "description": "Enable the AlternativeLayoutRule extension."
34+ },
35+ "ormolu.extensions.AlternativeLayoutRuleTransitional": {
36+ "type": "boolean",
37+ "default": false,
38+ "description": "Enable the AlternativeLayoutRuleTransitional extension."
39+ },
40+ "ormolu.extensions.Arrows": {
41+ "type": "boolean",
42+ "default": false,
43+ "description": "Enable the Arrows extension."
44+ },
45+ "ormolu.extensions.BangPatterns": {
46+ "type": "boolean",
47+ "default": false,
48+ "description": "Enable the BangPatterns extension."
49+ },
50+ "ormolu.extensions.Cpp": {
51+ "type": "boolean",
52+ "default": false,
53+ "description": "Enable the Cpp extension."
54+ },
55+ "ormolu.extensions.MagicHash": {
56+ "type": "boolean",
57+ "default": false,
58+ "description": "Enable the MagicHash extension."
59+ },
60+ "ormolu.extensions.MonadComprehensions": {
61+ "type": "boolean",
62+ "default": false,
63+ "description": "Enable the MonadComprehensions extension."
64+ },
65+ "ormolu.extensions.PatternSynonyms": {
66+ "type": "boolean",
67+ "default": false,
68+ "description": "Enable the PatternSynonyms extension."
69+ },
70+ "ormolu.extensions.RecursiveDo": {
71+ "type": "boolean",
72+ "default": false,
73+ "description": "Enable the RecursiveDo extension."
74+ },
75+ "ormolu.extensions.StaticPointers": {
76+ "type": "boolean",
77+ "default": false,
78+ "description": "Enable the StaticPointers extension."
79+ },
80+ "ormolu.extensions.TemplateHaskellQuotes": {
81+ "type": "boolean",
82+ "default": false,
83+ "description": "Enable the TemplateHaskellQuotes extension."
84+ },
85+ "ormolu.extensions.TransformListComp": {
86+ "type": "boolean",
87+ "default": false,
88+ "description": "Enable the TransformListComp extension."
89+ },
90+ "ormolu.extensions.TypeApplications": {
91+ "type": "boolean",
92+ "default": false,
93+ "description": "Enable the TypeApplications extension."
94+ },
95+ "ormolu.extensions.UnboxedSums": {
96+ "type": "boolean",
97+ "default": false,
98+ "description": "Enable the UnboxedSums extension."
99+ },
100+ "ormolu.extensions.UnboxedTuples": {
101+ "type": "boolean",
102+ "default": false,
103+ "description": "Enable the UnboxedTuples extension."
104+ },
105+ "ormolu.extensions.UnicodeSyntax": {
106+ "type": "boolean",
107+ "default": false,
108+ "description": "Enable the UnicodeSyntax extension."
109+ },
110+ "ormolu.tolerateCpp": {
111+ "type": "boolean",
112+ "default": false,
113+ "description": "Do not fail if CPP pragma is present."
114+ },
115+ "ormolu.unsafe": {
116+ "type": "boolean",
117+ "default": false,
118+ "description": "Run in \"unsafe\" mode. Do formatting faster but without automatic detection of defects."
119+ },
120+ "ormolu.checkIdempotency": {
121+ "type": "boolean",
122+ "default": false,
123+ "description": "Fail if formatting is not idempotent."
124+ },
125+ "ormolu.customArguments": {
126+ "type": [
127+ "string",
128+ "null"
129+ ],
130+ "default": null,
131+ "description": "Custom arguments to pass to ormolu."
132+ }
133+ }
134+ }
135+ },
136+ "activationEvents": [
137+ "onLanguage:haskell"
138+ ],
31139 "scripts": {
32140 "vscode:prepublish": "yarn run compile",
33141 "compile": "tsc -p ./",