forked from onflow/vscode-cadence
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
270 lines (270 loc) · 7.69 KB
/
package.json
File metadata and controls
270 lines (270 loc) · 7.69 KB
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
270
{
"name": "flowindex-cadence",
"displayName": "Cadence (FlowIndex)",
"publisher": "FlowIndex",
"description": "This extension integrates Cadence, the resource-oriented smart contract programming language of Flow, into Visual Studio Code. Enhanced by Outblock with LSP v2 support.",
"version": "3.1.0",
"cadenceToolsRef": "dc78ce7104a73f74929ab2f580726f7700f93ef7",
"repository": {
"type": "git",
"url": "https://github.com/Outblock/vscode-cadence.git"
},
"scripts": {
"vscode:prepublish": "npm run -S prepare:lsp && npm run -S esbuild-base -- --minify",
"prepare:lsp": "node ./scripts/build-bundled-lsp.mjs",
"esbuild-base": "mkdirp ./out/extension && cp ./node_modules/@onflow/cadence-parser/dist/cadence-parser.wasm ./out/extension && esbuild ./extension/src/main.ts --bundle --outfile=out/extension/src/main.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run -S esbuild-base -- --sourcemap",
"esbuild-watch": "npm run -S esbuild-base -- --sourcemap --watch",
"check": "tsc -p ./",
"copy-test-fixtures": "rimraf ./out/extension/test/integration/fixtures && cp -R ./extension/test/fixtures ./out/extension/test/integration/fixtures",
"clean-test": "rimraf ./out",
"test": "npm run clean-test && npm run esbuild && tsc -p ./ && npm run copy-test-fixtures && node ./out/extension/test/run-tests.js",
"package": "vsce package",
"install-extension": "code --install-extension cadence-*.vsix",
"package-test": "vsce package --out ./extension/test/fixtures/workspace/cadence.vsix",
"lint": "ts-standard",
"lint-fix": "ts-standard --fix",
"test-grammar": "mocha tm-tests/grammar.test.mjs --timeout 360000",
"test-grammar-regression": "mocha tm-tests/regression.test.mjs --timeout 360000",
"test-grammar-all": "npm run test-grammar && npm run test-grammar-regression"
},
"engines": {
"vscode": "^1.99.3"
},
"categories": [
"Programming Languages"
],
"icon": "images/icon.png",
"activationEvents": [
"onLanguage:cadence",
"onFileSystem:cadence-schema"
],
"main": "./out/extension/src/main.js",
"contributes": {
"breakpoints": [
{
"language": "cadence"
}
],
"debuggers": [
{
"type": "cadence",
"languages": [
"cadence"
],
"label": "Cadence Debug",
"configurationAttributes": {
"launch": {
"required": [
"program"
],
"properties": {
"program": {
"type": "string",
"description": "Absolute path to a file.",
"default": "${file}"
},
"stopOnEntry": {
"type": "boolean",
"description": "Automatically stop after launch.",
"default": true
}
}
},
"attach": {
"required": [],
"properties": {
"stopOnEntry": {
"type": "boolean",
"description": "Automatically stop after attach.",
"default": true
}
}
},
"initialConfigurations": [
{
"type": "cadence",
"request": "launch",
"name": "Curent file",
"program": "${file}",
"stopOnEntry": true
}
]
}
}
],
"commands": [
{
"command": "cadence.restartServer",
"category": "Cadence",
"title": "Restart language server"
},
{
"command": "cadence.checkDepencencies",
"category": "Cadence",
"title": "Check Dependencies"
},
{
"command": "cadence.changeFlowCliBinary",
"category": "Cadence",
"title": "Change Flow CLI Binary"
}
],
"configuration": {
"title": "Cadence",
"properties": {
"cadence.lspMode": {
"type": "string",
"default": "lsp-v2",
"enum": ["flow-cli", "lsp-v2"],
"enumDescriptions": [
"Use the Flow CLI's built-in language server as a compatibility fallback",
"Use the bundled Cadence LSP v2 binary (default, faster, and updated independently from Flow CLI)"
],
"description": "Which language server to use for Cadence.",
"scope": "resource"
},
"cadence.lspBinaryPath": {
"type": "string",
"default": "",
"description": "Optional override path to a Cadence LSP v2 binary. If empty, the extension uses the bundled binary first, then PATH, then falls back to Flow CLI when needed.",
"scope": "resource"
},
"cadence.flowCommand": {
"type": "string",
"default": "flow",
"description": "The command to invoke the Flow CLI for fallback language-server mode and other CLI-dependent features.",
"scope": "resource"
},
"cadence.accessCheckMode": {
"type": "string",
"default": "strict",
"enum": [
"strict",
"notSpecifiedRestricted",
"notSpecifiedUnrestricted",
"none"
],
"enumDescriptions": [
"Access modifiers are required and always enforced",
"Access modifiers are optional. Access is assumed private if not specified",
"Access modifiers are optional. Access is assumed public if not specified",
"Access modifiers are optional and ignored"
],
"description": "Configures if access modifiers are required and how they are are enforced.",
"scope": "resource"
},
"cadence.customConfigPath": {
"type": "string",
"default": "",
"description": "Optional path to a flow.json. Passed to the language server as-is.",
"scope": "resource"
},
"cadence.test.maxConcurrency": {
"type": "number",
"default": "5",
"description": "The maximum number of test files that can be run concurrently.",
"scope": "resource"
}
}
},
"languages": [
{
"id": "cadence",
"extensions": [
".cdc"
],
"icon": {
"light": "./images/icon.png",
"dark": "./images/icon.png"
},
"configuration": "./extension/language/language-configuration.json"
}
],
"grammars": [
{
"language": "cadence",
"scopeName": "source.cadence",
"path": "./extension/language/syntaxes/cadence.tmGrammar.json"
},
{
"scopeName": "markdown.cadence.codeblock",
"path": "./extension/language/syntaxes/codeblock.json",
"injectTo": [
"text.html.markdown"
],
"embeddedLanguages": {
"meta.embedded.block.cadence": "cadence"
}
}
],
"jsonValidation": [
{
"fileMatch": "flow.json",
"url": "cadence-schema:///flow.json"
}
]
},
"devDependencies": {
"@types/chai": "^5.0.1",
"@types/expect": "^24.3.2",
"@types/glob": "^8.0.1",
"@types/lodash": "^4.17.20",
"@types/mixpanel": "^2.14.9",
"@types/mocha": "^10.0.9",
"@types/node": "^25.0.3",
"@types/object-hash": "^3.0.6",
"@types/semver": "^7.7.1",
"@types/sinon": "^17.0.3",
"@types/uuid": "^10.0.0",
"@types/vscode": "1.99.1",
"@vscode/test-electron": "^2.5.2",
"chai": "^6.2.2",
"esbuild": "^0.27.1",
"glob": "^11.1.0",
"extract-zip": "^2.0.1",
"mkdirp": "^3.0.1",
"mocha": "^11.7.5",
"nyc": "^17.1.0",
"onigasm": "^2.2.5",
"ovsx": "^0.10.6",
"rimraf": "^6.0.1",
"sinon": "^21.0.0",
"ts-mocha": "^11.1.0",
"ts-node": "^10.9.2",
"ts-standard": "^12.0.2",
"typescript": "^5.9.3",
"vscode-textmate": "^9.3.0"
},
"dependencies": {
"@onflow/cadence-parser": "^1.8.3",
"@sentry/node": "^10.27.0",
"@sentry/types": "^10.19.0",
"@vscode/vsce": "^3.7.1",
"ansi-regex": "^6.2.2",
"async-lock": "^1.4.1",
"crypto": "^1.0.1",
"elliptic": "^6.6.1",
"lodash": "^4.17.21",
"mixpanel": "^0.18.0",
"node-fetch": "^2.6.7",
"object-hash": "^3.0.0",
"os-name": "^6.1.0",
"rxjs": "^7.8.2",
"semver": "^7.7.3",
"sleep-synchronously": "^2.0.0",
"uuid": "^11.0.3",
"vscode-languageclient": "^9.0.1"
},
"__metadata": {
"id": "94920651-05f7-4ba0-bf76-379f4fef81ac",
"publisherDisplayName": "Flow Blockchain",
"publisherId": "1b4a291e-1133-468e-b471-80338e4c9595",
"isPreReleaseVersion": false
},
"ts-standard": {
"ignore": [
"tm-tests/**"
]
}
}