/
package.json
222 lines (222 loc) · 5.5 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
{
"name": "reason-vscode",
"description": "IDE & Syntax support for Reason/OCaml",
"author": "Jared Forsyth",
"license": "ISC",
"version": "1.7.11",
"publisher": "jaredly",
"repository": {
"type": "git",
"url": "https://github.com/jaredly/reason-language-server"
},
"engines": {
"vscode": "^1.22.0"
},
"categories": [
"Other"
],
"icon": "logo.png",
"activationEvents": [
"onLanguage:reason",
"onLanguage:ocaml",
"onLanguage:reason_lisp"
],
"main": "./src/index",
"contributes": {
"commands": [
{
"command": "reason-language-server.restart",
"title": "Restart Reason Language Server"
},
{
"command": "reason-language-server.show_ppxed_source",
"title": "Reason: Show the fully ppxed source for this file."
},
{
"command": "reason-language-server.show_ast",
"title": "Reason: Show the abstract syntax tree (AST) for this file."
},
{
"command": "reason-language-server.create_interface",
"title": "Reason: Create an interface file for this implementation file."
},
{
"command": "reason-language-server.dump_file_data",
"title": "Reason: dump data on the current file"
}
],
"snippets": [
{
"language": "reason",
"path": "./snippets/snippets.json"
}
],
"configuration": {
"type": "object",
"title": "Reason Language Server",
"properties": {
"reason_language_server.location": {
"type": "string",
"description": "Provide a custom location for the language server binary"
},
"reason_language_server.build_system_override_by_root": {
"type": "object",
"additionalProperties": {
"type": "string",
"enum": [
"bsb:4.0.7",
"dune:esy",
"dune:opam:/abs/path/to/switch",
"bsb-native:4.0.7:js",
"bsb-native:4.0.7:bytecode",
"bsb-native:4.0.7:native"
]
},
"description": "Only specify this if build system autodetection isn't working for you (for example if you have a bsconfig.json, and a dune file in the same project). The keys in this object should be in uri format, e.g. file:///some/path/here"
},
"reason_language_server.refmt": {
"type": "string",
"description": "Provide a custom location for the refmt binary"
},
"reason_language_server.lispRefmt": {
"type": "string",
"description": "Provide a location for the reason-lisp lispRefmt binary"
},
"reason_language_server.mlfmt": {
"type": "string",
"description": "Provide a location for an .ml/.mli formatter"
},
"reason_language_server.format_width": {
"type": "number",
"default": 80,
"description": "Format width (default=80)"
},
"reason_language_server.per_value_codelens": {
"type": "boolean",
"default": false,
"description": "Show the type for each top-level value in a codelens"
},
"reason_language_server.dependencies_codelens": {
"type": "boolean",
"default": true,
"description": "Show the dependencies for a file at the top"
},
"reason_language_server.opens_codelens": {
"type": "boolean",
"default": true,
"description": "Indicate what values have been used from an open"
},
"reason_language_server.show_module_path_on_hover": {
"type": "boolean",
"default": true,
"description": "Show the module path on hover"
},
"reason_language_server.reloadOnChange": {
"type": "boolean",
"default": false,
"description": "Monitor the language server binary for updates, and restart it (for development)."
},
"reason_language_server.show_debug_errors": {
"type": "boolean",
"default": false,
"description": "Show errors in the console"
},
"reason_language_server.autoRebuild": {
"type": "boolean",
"default": true,
"description": "Enables autorun of bsb"
}
}
},
"grammars": [
{
"language": "ocaml",
"scopeName": "source.ocaml",
"path": "./ocaml.json"
},
{
"language": "reason",
"scopeName": "source.reason",
"path": "./reason.json"
},
{
"language": "reason_lisp",
"scopeName": "source.reason_lisp",
"path": "./reason-lisp.json"
},
{
"scopeName": "markdown.reason.codeblock",
"path": "./reason-markdown-codeblock.json",
"injectTo": [
"text.html.markdown"
],
"embeddedLanguages": {
"meta.embedded.block.reason": "reason"
}
},
{
"language": "bucklescript",
"scopeName": "source.bucklescript",
"path": "./bucklescript.json"
}
],
"languages": [
{
"id": "reason",
"aliases": [
"Reason"
],
"extensions": [
".re",
".rei"
],
"configuration": "./reason.configuration.json"
},
{
"id": "ocaml",
"aliases": [
"OCaml"
],
"extensions": [
".ml",
".mli"
],
"configuration": "./ocaml.configuration.json"
},
{
"id": "reason_lisp",
"aliases": [
"Reason Lisp"
],
"extensions": [
".rel",
".reli"
],
"configuration": "./reason-lisp.configuration.json"
},
{
"id": "bucklescript",
"aliases": [
"BuckleScript"
],
"extensions": [
".res",
".resi"
],
"configuration": "./bucklescript.configuration.json"
}
]
},
"scripts": {
"postinstall": "node ./node_modules/vscode/bin/install",
"build-syntaxes": "tsc -p src/syntaxes && node script/syntax.js"
},
"dependencies": {
"vscode": "^1.1.17",
"vscode-languageclient": "^4.1.3",
"vscode-languageserver-types": "^3.14.0"
},
"devDependencies": {
"typescript": "^2.8.1"
}
}