forked from rescript-lang/rescript-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
222 lines (222 loc) · 6.01 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": "rescript-vscode",
"displayName": "ReScript",
"description": "ReScript language support (official)",
"author": "chenglou",
"license": "MIT",
"version": "1.12.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": [
{
"scopes": {
"jsx-lowercase": ["entity.name.tag"],
"jsx-tag": ["punctuation.definition.tag"],
"support-type-primitive": ["support.type.primitive"]
}
}
],
"jsonValidation": [
{
"fileMatch": "bsconfig.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"
}
}
],
"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.autoRunCodeAnalysis": {
"type": "boolean",
"default": false,
"description": "Automatically start ReScript's code analysis."
},
"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.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"
},
{
"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 compile",
"compile": "tsc -b",
"watch": "tsc -b -w",
"postinstall": "cd server && npm i && cd ../client && npm i && cd ../analysis/tests && npm i && cd ../reanalyze/examples/deadcode && npm i && cd ../termination && npm i"
},
"devDependencies": {
"@types/node": "^14.14.41",
"@types/vscode": "1.68.0",
"semver": "^7.3.7",
"typescript": "^4.7.3"
}
}