-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
239 lines (239 loc) · 6.73 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
{
"name": "vscode-noir",
"displayName": "Noir Language Support",
"description": "Noir support for Visual Studio Code",
"version": "0.0.13",
"publisher": "noir-lang",
"keywords": [
"noir",
"noir-lang"
],
"icon": "noir.png",
"engines": {
"vscode": "^1.67.0"
},
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/noir-lang/vscode-noir"
},
"bugs": {
"url": "https://github.com/noir-lang/vscode-noir/issues"
},
"categories": [
"Programming Languages"
],
"activationEvents": [
"onLanguage:noir",
"onStartupFinished",
"onDebug"
],
"main": "./out/extension",
"contributes": {
"commands": [
{
"command": "noir.restart",
"title": "Noir: Restart Language Server"
},
{
"command": "nargo.profile.hide",
"title": "Noir: Hide Profile information",
"when": "noir.profileInfoPresent == true"
}
],
"menus": {
"commandPalette": [
{
"command": "nargo.profile.hide",
"when": "noir.profileInfoPresent == true"
}
]
},
"snippets": [
{
"language": "noir",
"path": "./snippets/snippets.json"
}
],
"languages": [
{
"id": "noir",
"aliases": [
"Noir",
"noir"
],
"extensions": [
".nr"
],
"icon": {
"light": "./icons/noir_light.svg",
"dark": "./icons/noir_dark.svg"
},
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "noir",
"scopeName": "source.nr",
"path": "./syntaxes/noir.tmLanguage.json"
}
],
"keybindings": [
{
"command": "nargo.profile.hide",
"key": "shift+alt+ctrl+n, shift+p",
"mac": "shift+alt+cmd+n shift+p",
"when": "noir.profileInfoPresent"
},
{
"command": "nargo.profile",
"key": "shift+alt+ctrl+n p",
"mac": "shift+alt+cmd+n p"
}
],
"breakpoints": [
{
"language": "noir"
}
],
"debuggers": [
{
"type": "noir",
"languages": [
"noir"
],
"label": "Noir Debugging",
"configurationAttributes": {
"launch": {
"required": [
"projectFolder"
],
"properties": {
"projectFolder": {
"type": "string",
"description": "Absolute path to the Nargo project directory.",
"default": "${workspaceFolder}"
},
"package": {
"type": "string",
"description": "Optional name of the binary package to debug",
"default": null
},
"proverName": {
"type": "string",
"description": "Name of the prover input to use (default Prover)",
"default": "Prover"
},
"generateAcir": {
"type": "boolean",
"description": "If true, generate ACIR opcodes instead of Brillig which will be closer to release binaries but less convenient for debugging",
"default": false
},
"skipInstrumentation": {
"type": "boolean",
"description": "Skips variables debugging instrumentation of code, making debugging less convenient but the resulting binary smaller and closer to production",
"default": false
}
}
}
},
"initialConfigurations": [
{
"type": "noir",
"request": "launch",
"name": "Noir binary package",
"projectFolder": "${workspaceFolder}",
"proverName": "Prover"
}
],
"configurationSnippets": [
{
"label": "Noir Debug: Prove package",
"description": "A new configuration for debugging a Noir binary package",
"body": {
"type": "noir",
"request": "launch",
"name": "Noir binary package",
"projectFolder": "${workspaceFolder}",
"proverName": "Prover"
}
}
]
}
],
"configuration": {
"type": "object",
"title": "Noir Language Server configuration",
"properties": {
"noir.nargoFlags": {
"scope": "resource",
"type": "string",
"description": "Space-separated list of flags to pass to the nargo CLI"
},
"noir.nargoPath": {
"scope": "resource",
"type": "string",
"description": "Absolute path to the nargo CLI (detected in PATH if not specified)"
},
"noir.enableLSP": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Enable the language server"
},
"noir.enableCodeLens": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Enable the Code Lens feature of language server. (Compile, Execute, Info, Profile, Run Test links above entry functions and tests)"
},
"noir.trace.server": {
"scope": "resource",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the language server."
}
}
},
"configurationDefaults": {
"[noir]": {
"editor.defaultFormatter": "noir-lang.vscode-noir"
}
}
},
"scripts": {
"vscode:prepublish": "npm run esbuild-base -- --minify",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"package": "vsce package",
"test-compile": "tsc -p ./",
"format": "prettier --write .",
"lint": "NODE_NO_WARNINGS=1 eslint . --ext .ts --ignore-path ./.eslintignore --max-warnings 0",
"check-format": "prettier --check .",
"deploy": "vsce publish"
},
"dependencies": {
"vscode-languageclient": "^8.0.3",
"which": "^3.0.1"
},
"devDependencies": {
"@types/node": "^12.12.0",
"@types/vscode": "1.67.0",
"@types/which": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^6.7.3",
"@typescript-eslint/parser": "^6.7.3",
"esbuild": "^0.17.19",
"eslint": "^8.55.0",
"eslint-plugin-prettier": "^5.0.0",
"prettier": "3.0.3",
"typescript": "^5.1.3",
"vsce": "^2.15.0"
}
}