-
Notifications
You must be signed in to change notification settings - Fork 15
/
package.json
246 lines (246 loc) · 10.9 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
{
"name": "vscode-ghc-simple",
"displayName": "Simple GHC (Haskell) Integration",
"description": "Simple Haskell support using only GHCi",
"repository": {
"type": "git",
"url": "https://github.com/dramforever/vscode-ghc-simple"
},
"license": "ISC",
"version": "0.2.4",
"publisher": "dramforever",
"engines": {
"vscode": "^1.40.0"
},
"categories": [
"Programming Languages"
],
"keywords": [
"haskell"
],
"extensionDependencies": [
"justusadam.language-haskell"
],
"icon": "images/vgs-icon.png",
"activationEvents": [
"onLanguage:haskell",
"onLanguage:literate haskell"
],
"main": "./out/src/extension",
"contributes": {
"commands": [
{
"command": "vscode-ghc-simple.restart",
"title": "Restart GHCi sessions",
"category": "GHC"
},
{
"command": "vscode-ghc-simple.inline-repl-run",
"title": "Run this block in GHCi",
"category": "GHC"
},
{
"command": "vscode-ghc-simple.inline-repl-run-all",
"title": "Run all block from this file in GHCi",
"category": "GHC"
}
],
"keybindings": [
{
"command": "vscode-ghc-simple.inline-repl-run",
"key": "shift+enter",
"when": "editorLangId == haskell && editorTextFocus && config.ghcSimple.feature.inlineRepl"
},
{
"command": "vscode-ghc-simple.inline-repl-run-all",
"key": "shift+alt+enter",
"when": "editorLangId == haskell && editorTextFocus && config.ghcSimple.feature.inlineRepl"
}
],
"configuration": {
"type": "object",
"title": "GHC Simple configuration",
"properties": {
"ghcSimple.feature.diagnostics": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Enable diagnostics"
},
"ghcSimple.feature.rangeType": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Enable selection type tooltip"
},
"ghcSimple.feature.completion": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Enable completion"
},
"ghcSimple.feature.definition": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Enable go to definition"
},
"ghcSimple.feature.reference": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Enable show references"
},
"ghcSimple.feature.inlineRepl": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Enable inline GHCi REPL"
},
"ghcSimple.feature.hover": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Enable documentation on hover"
},
"ghcSimple.filterInfo": {
"type": "boolean",
"default": true,
"scope": "resource",
"markdownDescription": "Shorten `:info` output"
},
"ghcSimple.workspaceType": {
"type": "string",
"default": "detect",
"markdownDeprecationMessage": "Removed and has no effect. Please use an `hie.yaml` file. See readme for details.",
"scope": "resource",
"enum": [
"detect",
"stack",
"cabal",
"cabal new",
"cabal v2",
"bare-stack",
"bare"
]
},
"ghcSimple.replCommand": {
"type": "string",
"default": "",
"scope": "resource",
"markdownDescription": "The command used to start GHCi. `$stack_ide_targets` will be replaced by the output of `stack ide targets`. Leave blank for auto detection.\n\nWhen set, overrides the deprecated `#ghcSimple.workspaceType#`. If you set this, please also set `#ghcSimple.replScope#` to an appropriate value."
},
"ghcSimple.replScope": {
"type": "string",
"enum": [
"workspace",
"file"
],
"default": "workspace",
"markdownDescription": "Whether GHCi should be started for a project or individual files.\n\n**Note**: This option has no effect when `#ghcSimple.replCommand#` is set to empty string for auto detection."
},
"ghcSimple.replLinger": {
"type": "boolean",
"default": true,
"markdownDescription": "Whether GHCi sessions for workspaces linger after closing all associated documents.\n\nWhen enabled, the GHCi startup time is saved but takes more memory when idle. When disabled, kills GHCi after all associated files are closed, saves memory but takes time to restart. GHCi for a single file never linger."
},
"ghcSimple.trustedReplCommandConfigs": {
"type": "object",
"default": {},
"scope": "application",
"markdownDescription": "Using a `#ghcSimple.replCommand#` configuration from an untrusted workspace can pose a security risk. Whenever such a configuration occurs, you will be notified and if you choose to trust it, it will be recorded here."
},
"ghcSimple.startupCommands.all": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"System.IO.hSetBuffering System.IO.stderr System.IO.NoBuffering",
"System.IO.hSetBuffering System.IO.stdout System.IO.NoBuffering",
":set -fno-diagnostics-show-caret -fdiagnostics-color=never -ferror-spans",
":set -fdefer-type-errors -fdefer-typed-holes -fdefer-out-of-scope-variables",
":seti -fno-defer-type-errors -fno-defer-typed-holes -fno-defer-out-of-scope-variables",
":set -haddock",
":set -fno-hide-source-paths",
":set -Wno-error=missing-home-modules"
],
"scope": "resource",
"markdownDescription": "GHCi commands on startup to use for all workspace types.\n\nThe default value is for use within vscode-ghc-simple and you can customize these if needed. Since these might be updated in the future, Custom commands should go to `#ghcSimple.startupCommands.custom#`"
},
"ghcSimple.startupCommands.bare": {
"type": "array",
"items": {
"type": "string"
},
"default": [
":set -Wall",
":seti -Wno-type-defaults"
],
"scope": "resource",
"markdownDescription": "GHCi commands on startup to use for 'bare' workspace types.\n\nThe default value is for use within vscode-ghc-simple and you can customize these if needed. Since these might be updated in the future, Custom commands should go to `#ghcSimple.startupCommands.custom#`"
},
"ghcSimple.startupCommands.custom": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"scope": "resource",
"markdownDescription": "Custom GHCi commands on startup"
},
"ghcSimple.maxCompletions": {
"type": "number",
"default": 50,
"scope": "resource",
"markdownDescription": "Maximum number of completion items to show."
},
"ghcSimple.inlineRepl.codeLens": {
"type": "boolean",
"default": true,
"scope": "resource",
"markdownDescription": "Show code lens for GHCi REPL blocks"
},
"ghcSimple.inlineRepl.loadType": {
"type": "string",
"enum": [
"byte-code",
"object-code"
],
"default": "byte-code",
"markdownEnumDescriptions": [
"Use `-fbyte-code` for GHCi REPL blocks",
"Use `-fobject-code` for GHCi REPL blocks"
],
"markdownDescription": "Whether to load modules with `-fbyte-code` or `-fobject-code` when using the REPL.\n\nThe former is the default as it loads faster. The latter runs faster and can use FFI. Write `:set -fbyte-code` or `:set -fobject-code` as first line of GHCi REPL block to override."
},
"ghcSimple.flag.noNotifySlowRangeType": {
"type": "boolean",
"default": false,
"scope": "resource",
"description": "Do not show message for slow range type"
},
"ghcSimple.statusBar.prefix": {
"type": "string",
"default": "GHC",
"scope": "application",
"markdownDescription": "Prefix of the status bar item of this extension"
}
}
}
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -watch -p ./"
},
"devDependencies": {
"@types/js-yaml": "^4.0.0",
"@types/node": "^14.14.21",
"@types/vscode": "^1.40.0",
"typescript": "^4.1.3",
"@vscode/vsce": "^2.15.0"
},
"dependencies": {
"js-yaml": "^4.0.0"
}
}