-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
259 lines (259 loc) · 7.93 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
{
"name": "satysfi-workshop",
"displayName": "SATySFi Workshop",
"description": "Launguage support for SATySFi",
"version": "1.4.1",
"publisher": "pickoba",
"repository": {
"url": "https://github.com/pickoba/satysfi-workshop"
},
"icon": "vscode-satysfi.png",
"galleryBanner": {
"color": "#241435",
"theme": "dark"
},
"engines": {
"vscode": "^1.86.0"
},
"categories": [
"Programming Languages",
"Snippets",
"Debuggers"
],
"contributes": {
"configuration": [
{
"title": "SATySFi",
"properties": {
"satysfi-workshop.executable": {
"type": "string",
"default": "satysfi",
"title": "SATySFi Executable",
"markdownDescription": "A path to the `satysfi` executable"
},
"satysfi-workshop.build.when": {
"type": "string",
"enum": [
"never",
"onSave"
],
"default": "never",
"title": "When to Build",
"markdownDescription": "When to trigger automatic build"
},
"satysfi-workshop.build.buildOptions": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"title": "Build Options",
"markdownDescription": "Additional options to pass to the `satysfi` when build"
},
"satysfi-workshop.build.rootFile": {
"type": "string",
"default": "",
"title": "Root File for Build",
"markdownDescription": "The root .saty file to build a project. You do not need to set it if you have only one .saty file in your workspace."
},
"satysfi-workshop.typecheck.when": {
"type": "string",
"enum": [
"never",
"onSave",
"onFileChange"
],
"default": "onSave",
"title": "When to perform a Type Check",
"markdownDescription": "When to perform a type check automatically"
},
"satysfi-workshop.typecheck.buildOptions": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"--full-path",
"--type-check-only",
"--bytecomp"
],
"title": "Typecheck Build Options",
"markdownDescription": "Additional options to pass to the `satysfi` when type check"
},
"satysfi-workshop.languageServer.enabled": {
"type": "boolean",
"default": false,
"title": "Enable Language Server",
"markdownDescription": "Enable the language server"
},
"satysfi-workshop.languageServer.path": {
"type": "string",
"default": "satysfi-language-server",
"title": "Language Server Path",
"markdownDescription": "The path to the language server executable"
},
"satysfi-workshop.packageCompletion.enabled": {
"type": "boolean",
"default": true,
"title": "Enable Package Completion",
"markdownDescription": "Enable package/file completion on @require and @import"
},
"satysfi-workshop.packageCompletion.searchPath": {
"type": "string",
"default": "",
"title": "Package Search Path",
"markdownDescription": "The path to search packages for completion. Leave empty to use default."
},
"satysfi-workshop.mathPreview.when": {
"type": "string",
"enum": [
"never",
"onHover"
],
"default": "never",
"title": "When to show a math preview",
"markdownDescription": "When to show a math preview"
},
"satysfi-workshop.mathPreview.buildOptions": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"--full-path"
],
"title": "Math Preview Build Options",
"markdownDescription": "Additional options to pass to the `satysfi` when math preview"
},
"satysfi-workshop.mathPreview.template": {
"type": "string",
"default": "",
"title": "Template File for Math Preview",
"markdownDescription": "A path to a template file (.saty) for math preview. Leave empty to use the internal one."
},
"satysfi-workshop.mathPreview.pdf2svg": {
"type": "string",
"default": "pdf2svg",
"title": "A path to the `pdf2svg` executable"
}
}
}
],
"languages": [
{
"id": "satysfi",
"aliases": [
"SATySFi",
"satysfi"
],
"extensions": [
".saty",
".satyh",
".satyg"
],
"filenamePatterns": [
"*.satyh-*"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "satysfi",
"scopeName": "text.saty.satyh",
"path": "./syntaxes/satysfi.tmLanguage.json",
"balancedBracketScopes": [
"punctuation.definition",
"punctuation.parenthesis"
]
}
],
"snippets": [
{
"language": "satysfi",
"scopeName": "text.saty.satyh",
"path": "./snippets/satysfi.json"
}
],
"commands": [
{
"command": "satysfi-workshop.build",
"title": "Build SATySFi Project",
"category": "SATySFi",
"icon": "$(debug-start)"
},
{
"command": "satysfi-workshop.typecheck",
"title": "TypeCheck Current Document",
"category": "SATySFi"
},
{
"command": "satysfi-workshop.openBuildLog",
"title": "Open SATySFi Build Log",
"category": "SATySFi"
},
{
"command": "satysfi-workshop.restartLanguageServer",
"title": "Restart Language Server",
"category": "SATySFi"
}
],
"keybindings": [
{
"key": "ctrl+alt+b",
"mac": "cmd+alt+b",
"command": "satysfi-workshop.build",
"when": "editorLangId == satysfi"
}
],
"menus": {
"editor/title": [
{
"when": "editorLangId == satysfi",
"command": "satysfi-workshop.build",
"group": "navigation"
}
]
}
},
"activationEvents": [
"onLanguage:satysfi"
],
"main": "./out/extension",
"scripts": {
"vscode:prepublish": "npm run build -- --minify",
"build": "node esbuild.mjs",
"build:tree-sitter": "mkdir -p parsers && cd parsers && cp ../node_modules/web-tree-sitter/tree-sitter.wasm . && tree-sitter build-wasm ../node_modules/tree-sitter-satysfi",
"watch": "npm run build -- --watch",
"lint": "npm run lint:eslint && npm run lint:prettier",
"lint:eslint": "eslint .",
"lint:prettier": "prettier --check .",
"fix": "npm run fix:prettier && npm run fix:eslint",
"fix:eslint": "npm run lint:eslint -- --fix",
"fix:prettier": "npm run lint:prettier -- --write",
"pretest": "npm run build",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^7.2.0",
"@types/mocha": "^10.0.6",
"@types/node": "^18.17.1",
"@types/vscode": "^1.86.0",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@vscode/test-electron": "^2.3.9",
"esbuild": "^0.20.1",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"mocha": "^10.3.0",
"prettier": "^3.2.5",
"tree-sitter-cli": "^0.21.0",
"tree-sitter-satysfi": "github:monaqa/tree-sitter-satysfi",
"typescript": "^5.3.3"
},
"dependencies": {
"vscode-languageclient": "^9.0.1",
"web-tree-sitter": "^0.21.0",
"zod": "^3.22.4"
}
}