-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathpackage.json
More file actions
247 lines (247 loc) · 7.37 KB
/
package.json
File metadata and controls
247 lines (247 loc) · 7.37 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
{
"name": "vscode-c3",
"displayName": "C3 Language Support for VSCode",
"description": "C3 Language Support for VSCode - Syntax Highlighting and Code Snippets",
"publisher": "c3",
"repository": "https://github.com/c3lang/vscode-c3.git",
"version": "0.3.1",
"engines": {
"vscode": "^1.75.0"
},
"categories": [
"Programming Languages",
"Snippets",
"Debuggers"
],
"icon": "images/icon.png",
"license": "MIT",
"contributes": {
"languages": [
{
"id": "c3",
"aliases": [
"C3",
"c3"
],
"extensions": [
".c3",
".c3i",
".c3t"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "c3",
"scopeName": "source.vscode.c3",
"path": "./syntaxes/c3.vscode.tmLanguage.json"
}
],
"snippets": [
{
"language": "c3",
"path": "./snippets/snippets.json"
}
],
"configuration": [
{
"type": "object",
"title": "C3 Language Support",
"properties": {
"c3.stdlib-path": {
"type": "string",
"default": null,
"markdownDescription": "Path to c3c stdlib"
},
"c3.lsp.enable": {
"type": "boolean",
"default": true,
"description": "Enables the language server"
},
"c3.lsp.path": {
"type": "string",
"default": null,
"scope": "machine",
"markdownDescription": "The path to **c3-lsp** binary"
},
"c3.lsp.checkForUpdate": {
"type": "boolean",
"description": "Whether to automatically check for new versions",
"default": true
},
"c3.lsp.sendCrashReports": {
"type": "boolean",
"default": false,
"markdownDescription": "Sends crash reports to server to help fixing bugs."
},
"c3.lsp.debug": {
"type": "boolean",
"default": false,
"markdownDescription": "Enables debug information logging"
},
"c3.lsp.log.path": {
"type": "string",
"default": "",
"description": "Saves log to specified file"
},
"c3.lsp.diagnosticsDelay": {
"type": "integer",
"default": 2000,
"markdownDescription": "Delay calculation of code diagnostics after modifications in source. In milliseconds, default 2000 ms."
},
"c3.lsp.compilerPath": {
"type": "string",
"default": "c3c",
"markdownDescription": "Path to the `c3c` compiler binary, used for diagnostics. Defaults to `c3c` (found via PATH)."
},
"c3.debug.gdbPath": {
"type": "string",
"default": "gdb",
"markdownDescription": "Path to the GDB executable. Requires GDB 14+ with DAP support (`--interpreter=dap`)."
},
"c3.format.enable": {
"type": "boolean",
"default": true,
"markdownDescription": "Enables formatting via [c3fmt](https://github.com/lmichaudel/c3fmt)"
},
"c3.format.path": {
"type": "string",
"default": null,
"scope": "machine",
"markdownDescription": "The path to `c3fmt` binary"
},
"c3.format.checkForUpdate": {
"type": "boolean",
"default": true,
"description": "Whether to automatically check for new versions of c3fmt"
}
}
}
],
"breakpoints": [
{
"language": "c3"
}
],
"debuggers": [
{
"type": "c3",
"label": "C3 Debug (GDB)",
"languages": [
"c3"
],
"configurationAttributes": {
"launch": {
"required": [
"program"
],
"properties": {
"program": {
"type": "string",
"description": "Absolute path to the compiled C3 executable to debug.",
"default": "${workspaceFolder}/build/${workspaceFolderBasename}"
},
"args": {
"type": "array",
"items": {
"type": "string"
},
"description": "Command-line arguments passed to the program.",
"default": []
},
"cwd": {
"type": "string",
"description": "Working directory for the program being debugged.",
"default": "${workspaceFolder}"
},
"env": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Environment variables to set for the program.",
"default": {}
},
"stopOnEntry": {
"type": "boolean",
"description": "Automatically stop the program at the entry point.",
"default": false
},
"gdbPath": {
"type": "string",
"description": "Path to GDB executable (overrides c3.debug.gdbPath setting)."
}
}
}
},
"initialConfigurations": [
{
"type": "c3",
"request": "launch",
"name": "Debug C3 Program",
"program": "${workspaceFolder}/build/${workspaceFolderBasename}",
"args": [],
"cwd": "${workspaceFolder}",
"stopOnEntry": false
}
],
"configurationSnippets": [
{
"label": "C3: Launch Program",
"description": "Launch and debug a compiled C3 program using GDB",
"body": {
"type": "c3",
"request": "launch",
"name": "${2:Debug C3 Program}",
"program": "^\"\\${workspaceFolder}/build/${1:program_name}\"",
"args": [],
"cwd": "^\"\\${workspaceFolder}\"",
"stopOnEntry": false
}
}
]
}
],
"configurationDefaults": {
"[c3]": {
"editor.tabSize": 4,
"editor.insertSpaces": false,
"editor.detectIndentation": false,
"editor.formatOnSave": false
},
"files.associations": {
"project.json": "jsonc"
}
}
},
"activationEvents": [
"onLanguage:c3",
"onDebugResolve:c3"
],
"main": "./dist/extension.js",
"dependencies": {
"axios": "^1.7.7",
"decompress": "^4.2.1",
"semver": "^7.6.3",
"vscode-jsonrpc": "^8.2.1",
"vscode-languageclient": "^9.0.1"
},
"devDependencies": {
"@vscode/test-cli": "^0.0.12",
"@vscode/test-electron": "^2.5.2",
"esbuild": "^0.25.10",
"js-yaml": "^4.1.0",
"mocha": "^11.7.5"
},
"overrides": {
"diff": "^8.0.3",
"serialize-javascript": "^7.0.3"
},
"scripts": {
"build": "node ./build_syntax.js && npm run esbuild-base -- --minify && npx @vscode/vsce package -o vscode-c3.vsix",
"esbuild-base": "esbuild ./src/extension.js --bundle --outfile=dist/extension.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base -- --sourcemap",
"test": "node ./src/test/runTest.js"
}
}