-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.json
266 lines (266 loc) · 7.12 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
{
"name": "escript-lsp",
"version": "0.14.3",
"description": "EScript for Visual Studio Code. Provides code completion, navigation, and more.",
"contributors": [
{
"name": "POL Core Team",
"url": "https://github.com/polserver"
}
],
"license": "Apache-2.0",
"publisher": "polserver",
"icon": "icon.png",
"categories": [
"Programming Languages"
],
"keywords": [
"POL",
"polserver",
"Escript"
],
"engines": {
"vscode": "^1.78.0"
},
"activationEvents": [
"onDebug"
],
"repository": {
"type": "git",
"url": "https://github.com/polserver/vscode-escript"
},
"main": "./client/out/extension.js",
"contributes": {
"languages": [
{
"id": "escript",
"aliases": [
"EScript",
"escript"
],
"extensions": [
".src",
".inc",
".em"
],
"configuration": "./language-configurations/escript.json"
},
{
"id": "escriptcfg",
"aliases": [
"escriptcfg"
],
"extensions": [
".cfg"
],
"configuration": "./language-configurations/cfg.json"
},
{
"id": "escript-injection"
},
{
"id": "escriptdoc"
}
],
"configuration": {
"type": "object",
"title": "EScript",
"properties": {
"escript.showModuleFunctionComments": {
"type": "boolean",
"default": false,
"description": "Show module function comments in documentation (hover, signature help)."
},
"escript.continueAnalysisOnError": {
"type": "boolean",
"default": true,
"markdownDescription": "Continue analysis even on parser errors. This allows symbols (variables, functions, function parameters, ...) to be available for extension features (hover, signature help, ...).\n\n**CAUTION**: This feature is still under experimentation and may cause unexpected crashes. If extension fails, please report an issue and disable this feature."
},
"escript.polCommitId": {
"type": "string",
"default": "",
"description": "If set, use this specific POL commit (or tag) for documentation."
},
"escript.disableWorkspaceReferences": {
"type": "boolean",
"default": false,
"markdownDescription": "Disable support for finding references across the whole workspace. If `true`, loading of the workspace cache is skipped, and finding references will only work across open files in the editor and their dependents.\n\nChanging this option does nothing if the workspace cache has already been loaded."
},
"escript.referenceAllFunctions": {
"type": "boolean",
"default": false,
"markdownDescription": "By default, the compiler will only include functions that have been called when analyzing sources. If `true`, all functions will be analyzed, regardless if they are used."
}
}
},
"grammars": [
{
"language": "escript",
"scopeName": "source.escript",
"path": "./grammars/escript.json"
},
{
"language": "escriptcfg",
"scopeName": "source.escriptcfg",
"path": "./grammars/cfg.json"
},
{
"language": "escriptdoc",
"scopeName": "source.escriptdoc",
"path": "./grammars/doc.json"
},
{
"language": "escript-injection",
"scopeName": "markdown.escriptdoc.codeblock",
"path": "./grammars/codeblock.json",
"injectTo": [
"text.html.markdown"
],
"embeddedLanguages": {
"meta.embedded.block.escriptdoc": "escriptdoc"
}
}
],
"breakpoints": [
{
"language": "escript"
}
],
"debuggers": [
{
"type": "pol",
"languages": [
"escript"
],
"label": "POL Debug",
"configurationAttributes": {
"launch": {
"required": [
"port",
"script"
],
"properties": {
"host": {
"type": "string",
"description": "Debug server host",
"default": "127.0.0.1"
},
"port": {
"type": "number",
"description": "Debug server port",
"default": 5002
},
"password": {
"type": "string",
"description": "Debug server password"
},
"script": {
"type": "string",
"description": "Script to launch"
},
"arg": {
"type": "string",
"description": "Packed argument to send to program"
},
"stopAtEntry": {
"type": "boolean",
"description": "If true, the debugger should stop at the entrypoint of the target. Defaults to false.",
"default": false
}
}
},
"attach": {
"required": [
"port"
],
"properties": {
"host": {
"type": "string",
"description": "Debug server host",
"default": "127.0.0.1"
},
"port": {
"type": "number",
"description": "Debug server port",
"default": 5002
},
"password": {
"type": "string",
"description": "Debug server password"
},
"pid": {
"type": "number",
"description": "Process id. If none provided, a list of processes matching property `script` will be displayed to choose from.",
"default": 0
},
"script": {
"type": "string",
"description": "If no process id provided, attach to process running this script."
}
}
}
},
"configurationSnippets": [
{
"label": "POL Debug: Attach",
"description": "A new configuration for attaching to a script",
"body": {
"type": "pol",
"name": "Attach to script",
"request": "attach",
"host": "127.0.0.1",
"port": 5002,
"password": "",
"pid": 0,
"script": "^\"\\${relativeFile}\""
}
},
{
"label": "POL Debug: Launch",
"description": "A new configuration for launching a script",
"body": {
"type": "pol",
"name": "Launch script",
"request": "launch",
"host": "127.0.0.1",
"port": 5002,
"password": "",
"script": "^\"\\${relativeFile}\"",
"stopAtEntry": false
}
}
]
}
]
},
"scripts": {
"vscode:prepublish": "npm run clean && npm run build",
"postinstall": "cd client && npm install && cd ../native && npm install && cd ../server && npm install",
"watch": "npm run grammar && tsc -b -w",
"build": "npm run grammar && tsc -b && cd native && npm run build",
"clean": "rimraf client/out server/out grammars/escript.json",
"e2e": "cd client && npm test",
"test": "jest --coverage --detectOpenHandles --runInBand",
"test-all": "cross-env JEST_RUN_LONG_TESTS=1 jest --coverage --detectOpenHandles --runInBand",
"grammar": "js-yaml grammars/escript.yml > grammars/escript.json && js-yaml grammars/cfg.yml > grammars/cfg.json && js-yaml grammars/codeblock.yml > grammars/codeblock.json && js-yaml grammars/doc.yml > grammars/doc.json",
"eslint": "eslint"
},
"dependencies": {
"vscode-languageclient": "^9.0.1"
},
"devDependencies": {
"@types/jest": "^29.5.14",
"@types/mock-fs": "^4.13.4",
"@types/node": "^22.9.0",
"@typescript-eslint/parser": "^8.14.0",
"cross-env": "^7.0.3",
"eslint": "^9.15.0",
"jest": "^29.7.0",
"js-yaml": "^4.1.0",
"mock-fs": "^5.4.1",
"rimraf": "^6.0.1",
"ts-jest": "^29.2.5",
"ts-loader": "^9.5.1",
"typescript": "^5.6.3"
}
}