-
Notifications
You must be signed in to change notification settings - Fork 57
/
package.json
269 lines (269 loc) · 8.48 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
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
{
"name": "rescript-vscode",
"displayName": "ReScript",
"description": "ReScript language support (official)",
"author": "ReScript Team",
"license": "MIT",
"version": "1.58.0",
"repository": {
"type": "git",
"url": "https://github.com/rescript-lang/rescript-vscode"
},
"publisher": "chenglou92",
"icon": "logo.png",
"categories": [
"Programming Languages",
"Snippets",
"Linters",
"Formatters"
],
"keywords": [
"rescript",
"language-server"
],
"engines": {
"vscode": "^1.68.0"
},
"activationEvents": [
"onLanguage:rescript"
],
"main": "./client/out/extension",
"contributes": {
"semanticTokenScopes": [
{
"language": "rescript",
"scopes": {
"interface": [
"entity.name.tag"
],
"modifier": [
"punctuation.definition.tag"
],
"type": [
"support.type.primitive"
]
}
}
],
"jsonValidation": [
{
"fileMatch": [
"bsconfig.json",
"rescript.json"
],
"url": "https://raw.githubusercontent.com/rescript-lang/rescript-compiler/master/docs/docson/build-schema.json"
}
],
"commands": [
{
"command": "rescript-vscode.create_interface",
"title": "ReScript: Create an interface file for this implementation file"
},
{
"command": "rescript-vscode.open_compiled",
"category": "ReScript",
"title": "Open the compiled JS file for this implementation file",
"icon": "$(output)"
},
{
"command": "rescript-vscode.start_code_analysis",
"title": "ReScript: Start Code Analyzer"
},
{
"command": "rescript-vscode.stop_code_analysis",
"title": "ReScript: Stop Code Analyzer"
},
{
"command": "rescript-vscode.restart_language_server",
"title": "ReScript: Restart Language Server"
},
{
"command": "rescript-vscode.switch-impl-intf",
"title": "ReScript: Switch implementation/interface",
"icon": {
"light": "assets/switch-impl-intf-light.svg",
"dark": "assets/switch-impl-intf-dark.svg"
}
},
{
"command": "rescript-vscode.debug-dump-start",
"title": "DEBUG ReScript: Dump analysis info"
}
],
"keybindings": [
{
"command": "rescript-vscode.switch-impl-intf",
"key": "Alt+O",
"when": "editorLangId == rescript"
}
],
"menus": {
"editor/title": [
{
"command": "rescript-vscode.open_compiled",
"when": "editorLangId == rescript",
"group": "navigation"
},
{
"command": "rescript-vscode.switch-impl-intf",
"key": "Alt+O",
"when": "editorLangId == rescript",
"group": "navigation"
}
]
},
"snippets": [
{
"language": "rescript",
"path": "./snippets.json"
}
],
"taskDefinitions_unused": [
{
"type": "bsb",
"required": [
"task"
],
"properties": {
"task": {
"type": "string",
"description": "The bsb task"
}
}
}
],
"configuration": {
"type": "object",
"title": "ReScript",
"properties": {
"rescript.settings.allowBuiltInFormatter": {
"scope": "language-overridable",
"type": "boolean",
"default": false,
"description": "Whether you want to allow the extension to format your code using its built in formatter when it cannot find a ReScript compiler version in your current project to use for formatting."
},
"rescript.settings.askToStartBuild": {
"scope": "language-overridable",
"type": "boolean",
"default": true,
"description": "Whether you want the extension to prompt for autostarting a ReScript build if a project is opened with no build running."
},
"rescript.settings.inlayHints.enable": {
"type": "boolean",
"default": false,
"description": "Enable (experimental) inlay hints."
},
"rescript.settings.inlayHints.maxLength": {
"markdownDescription": "Maximum length of character for inlay hints. Set to null to have an unlimited length. Inlay hints that exceed the maximum length will not be shown.",
"default": 25,
"type": [
"null",
"integer"
],
"minimum": 0
},
"rescript.settings.codeLens": {
"type": "boolean",
"default": false,
"description": "Enable (experimental) code lens for function definitions."
},
"rescript.settings.signatureHelp.enabled": {
"type": "boolean",
"default": true,
"description": "Enable signature help for function calls."
},
"rescript.settings.signatureHelp.forConstructorPayloads": {
"type": "boolean",
"default": true,
"description": "Enable signature help for variant constructor payloads."
},
"rescript.settings.incrementalTypechecking.enable": {
"type": "boolean",
"default": true,
"description": "Enable incremental type checking."
},
"rescript.settings.incrementalTypechecking.acrossFiles": {
"type": "boolean",
"default": false,
"description": "(beta/experimental) Enable incremental type checking across files, so that unsaved file A gets access to unsaved file B."
},
"rescript.settings.incrementalTypechecking.debugLogging": {
"type": "boolean",
"default": false,
"description": "(debug) Enable debug logging (ends up in the extension output)."
},
"rescript.settings.cache.projectConfig.enable": {
"type": "boolean",
"default": true,
"description": "Enable project config caching. Can speed up latency dramatically."
},
"rescript.settings.binaryPath": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the directory where cross-platform ReScript binaries are. You can use it if you haven't or don't want to use the installed ReScript from node_modules in your project."
},
"rescript.settings.platformPath": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to the directory where platform-specific ReScript binaries are. You can use it if you haven't or don't want to use the installed ReScript from node_modules in your project."
}
}
},
"grammars": [
{
"language": "rescript",
"scopeName": "source.rescript",
"path": "./grammars/rescript.tmLanguage.json",
"embeddedLanguages": {
"meta.embedded.block.javascript": "javascript"
}
},
{
"scopeName": "markdown.rescript.codeblock",
"path": "./grammars/rescript.markdown.json",
"injectTo": [
"text.html.markdown"
],
"embeddedLanguages": {
"meta.embedded.block.rescript": "rescript"
}
}
],
"languages": [
{
"id": "rescript",
"aliases": [
"ReScript"
],
"extensions": [
".res",
".resi"
],
"configuration": "./rescript.configuration.json"
}
]
},
"scripts": {
"clean": "rm -rf client/out server/out",
"vscode:prepublish": "npm run clean && npm run bundle",
"compile": "tsc -b",
"watch": "tsc -b -w",
"postinstall": "cd server && npm i && cd ../client && npm i && cd ../tools && npm i && cd ../tools/tests && npm i && cd ../../analysis/tests && npm i && cd ../reanalyze/examples/deadcode && npm i && cd ../termination && npm i",
"bundle-server": "esbuild server/src/cli.ts --bundle --sourcemap --outfile=server/out/cli.js --format=cjs --platform=node --loader:.node=file --minify",
"bundle-client": "esbuild client/src/extension.ts --bundle --external:vscode --sourcemap --outfile=client/out/extension.js --format=cjs --platform=node --loader:.node=file --minify",
"bundle": "npm run bundle-server && npm run bundle-client"
},
"devDependencies": {
"@types/node": "^14.14.41",
"@types/vscode": "1.68.0",
"esbuild": "^0.20.1",
"semver": "^7.3.7",
"typescript": "^4.7.3"
}
}