-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpackage.json
More file actions
268 lines (268 loc) · 7.66 KB
/
package.json
File metadata and controls
268 lines (268 loc) · 7.66 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
{
"name": "jaclang-extension",
"version": "2026.3.15",
"displayName": "%extension.displayName%",
"description": "%extension.description%",
"publisher": "jaseci-labs",
"license": "MIT",
"icon": "./assets/icon.png",
"homepage": "https://www.jac-lang.org/",
"repository": {
"type": "git",
"url": "https://github.com/Jaseci-Labs/jaseci/tree/main/jac/support/vscode_ext/jac"
},
"galleryBanner": {
"color": "#1e415e",
"theme": "dark"
},
"categories": [
"Programming Languages",
"Debuggers",
"Linters",
"Formatters",
"Snippets",
"Data Science",
"Machine Learning"
],
"engines": {
"vscode": "^1.96.0"
},
"contributes": {
"configuration": {
"type": "object",
"title": "Jaclang Extension",
"properties": {
"jaclang-extension.showServeCommand": {
"type": "boolean",
"default": false,
"description": "Show the 'Jac: Serve' Button in the editor title bar"
},
"jaclang-extension.developerMode": {
"type": "boolean",
"default": false,
"description": "Enable developer mode to use experimental language server features"
}
}
},
"commands": [
{
"command": "jaclang-extension.visualizeGraph",
"title": "Jac: Visualize Graph"
},
{
"command": "jaclang-extension.selectEnv",
"title": "Jac: Select Environment"
},
{
"command": "jaclang-extension.toggleDeveloperMode",
"title": "Jac: Toggle Developer Mode"
},
{
"command": "jaclang-extension.restartLanguageServer",
"title": "Jac: Restart Language Server",
"icon": "$(refresh)"
},
{
"command": "jaclang-extension.runCurrentFile",
"title": "Jac: Run",
"icon": "$(play)"
},
{
"command": "jaclang-extension.debugCurrentFile",
"title": "Jac: Debug",
"icon": "$(debug-alt)"
},
{
"command": "jaclang-extension.serveCurrentFile",
"title": "Jac: Serve",
"icon": "$(cloud)"
},
{
"command": "jaclang-extension.inspectTokenScopes",
"title": "Jac: Inspect Token Scopes"
},
{
"command": "jac.lintfixFormat",
"title": "Lintfix Format"
}
],
"menus": {
"editor/title/run": [
{
"command": "jaclang-extension.runCurrentFile",
"group": "navigation@0",
"when": "resourceLangId == jac"
},
{
"command": "jaclang-extension.debugCurrentFile",
"group": "navigation@1",
"when": "resourceLangId == jac"
}
],
"editor/title": [
{
"command": "jaclang-extension.restartLanguageServer",
"group": "navigation@98",
"when": "resourceLangId == jac && config.jaclang-extension.developerMode"
},
{
"command": "jaclang-extension.serveCurrentFile",
"group": "navigation@99",
"when": "resourceLangId == jac && config.jaclang-extension.showServeCommand"
}
],
"editor/context": [
{
"command": "jac.lintfixFormat",
"when": "resourceLangId == jac",
"group": "1_modification"
}
],
"commandPalette": [
{
"command": "jaclang-extension.inspectTokenScopes",
"when": "config.jaclang-extension.developerMode"
}
]
},
"languages": [
{
"id": "jac",
"aliases": [
"The Jac Programming Language",
"jac"
],
"extensions": [
".jac"
],
"configuration": "./language-configuration.json",
"icon": {
"light": "./assets/file-icon.svg",
"dark": "./assets/file-icon.svg"
}
}
],
"grammars": [
{
"language": "jac",
"scopeName": "source.jac",
"path": "./syntaxes/jac.tmLanguage.json"
}
],
"debuggers": [
{
"type": "jacdebug",
"label": "Jac Debug",
"configurationAttributes": {
"launch": {
"required": [],
"properties": {
"program": {
"type": "string",
"description": "Path to the Jac executable",
"default": "${command:extension.jaclang-extension.getJacPath}"
},
"args": {
"type": "array",
"description": "Command line arguments passed to the program",
"items": {
"type": "string"
},
"default": [
"run",
"${file}"
]
},
"console": {
"enum": [
"internalConsole",
"integratedTerminal",
"externalTerminal"
],
"description": "Where to launch the debug target",
"default": "integratedTerminal"
},
"justMyCode": {
"type": "boolean",
"description": "Enable/disable debugging just the user's code",
"default": true
}
}
}
},
"initialConfigurations": [
{
"type": "debugpy",
"request": "launch",
"name": "Jac: Debug Current File",
"python": "${command:extension.jaclang-extension.getPythonPath}",
"program": "${command:extension.jaclang-extension.getJacPath}",
"args": [
"run",
"${file}"
],
"console": "integratedTerminal",
"justMyCode": true
}
],
"configurationSnippets": [
{
"label": "Jac: Debug Current File",
"description": "Debug the currently active Jac file",
"body": {
"type": "debugpy",
"request": "launch",
"name": "Jac: Debug Current File",
"python": "${command:extension.jaclang-extension.getPythonPath}",
"program": "${command:extension.jaclang-extension.getJacPath}",
"args": [
"run",
"${file}"
],
"console": "integratedTerminal",
"justMyCode": true
}
}
]
}
]
},
"main": "./out/extension.js",
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "tsc -b && npm run copy-fixtures",
"copy-fixtures": "mkdir -p out/test/fixtures && cp -r src/test/fixtures/* out/test/fixtures/",
"build": "vsce",
"watch": "tsc -b -w",
"package": "tsc --noEmit && esbuild src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node --minify",
"deploy": "vsce publish --yarn",
"vsce-package": "mkdir -p build && vsce package -o build/jac.vsix",
"test": "npm run test:unit && npm run test:integration",
"test:unit": "jest",
"test:integration": "npm run compile && node ./out/test/runTest.js"
},
"extensionDependencies": [
"ms-python.python"
],
"dependencies": {
"vscode-languageclient": "^9.0.1",
"vscode-oniguruma": "^2.0.1",
"vscode-textmate": "^9.3.0"
},
"devDependencies": {
"@types/chai": "^5.2.3",
"@types/jest": "^29.5.14",
"@types/mocha": "^10.0.10",
"@types/node": "^20.14.1",
"@types/vscode": "^1.96.0",
"@vscode/test-electron": "^2.5.2",
"@vscode/vsce": "^2.27.0",
"chai": "^6.2.1",
"esbuild": "^0.27.3",
"glob": "^13.0.0",
"jest": "^29.7.0",
"mocha": "^11.7.5",
"ts-jest": "^29.4.4",
"typescript": "^5.4.5"
}
}