-
Notifications
You must be signed in to change notification settings - Fork 22
/
package.json
339 lines (339 loc) · 11.2 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
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
{
"name": "language-renpy",
"displayName": "Ren'Py Language (8.3+)",
"description": "Adds rich support for the Ren'Py programming language to Visual Studio Code.",
"version": "2.4.0",
"publisher": "renpy",
"license": "MIT",
"homepage": "https://github.com/renpy/vscode-language-renpy",
"repository": {
"type": "git",
"url": "https://github.com/renpy/vscode-language-renpy"
},
"bugs": {
"url": "https://github.com/renpy/vscode-language-renpy/issues"
},
"icon": "icon.png",
"galleryBanner": {
"color": "#734675",
"theme": "dark"
},
"keywords": [
"python",
"renpy"
],
"categories": [
"Programming Languages",
"Snippets"
],
"engines": {
"vscode": "^1.75.0"
},
"capabilities": {
"untrustedWorkspaces": {
"supported": true
}
},
"activationEvents": [
"workspaceContains:**/*.rpy",
"workspaceContains:**/_ren.py",
"onDebugResolve:renpy"
],
"main": "./dist/extension",
"browser": "./dist/extension.js",
"contributes": {
"languages": [
{
"id": "renpy",
"aliases": [
"Ren'Py",
"renpy",
"rpy"
],
"extensions": [
".rpy",
".rpym",
".rpymc",
".rpyc"
],
"configuration": "./language-configuration.json",
"firstLine": "^#!\\s*/?.*\\brenpy\\b",
"icon": {
"light": "./renpy.svg",
"dark": "./renpy.svg"
}
}
],
"grammars": [
{
"language": "renpy",
"scopeName": "source.renpy",
"path": "./syntaxes/renpy.tmLanguage.json"
},
{
"scopeName": "source.renpy.screen",
"path": "./syntaxes/renpy.screen.tmLanguage.json"
},
{
"scopeName": "source.renpy.style",
"path": "./syntaxes/renpy.style.tmLanguage.json"
},
{
"scopeName": "source.renpy.atl",
"path": "./syntaxes/renpy.atl.tmLanguage.json"
},
{
"scopeName": "source.renpy.python",
"path": "./syntaxes/renpy.python.tmLanguage.json"
},
{
"scopeName": "renpy.comment.injection",
"path": "./syntaxes/injection.json",
"injectTo": [
"source.python"
],
"embeddedLanguages": {
"meta.embedded.renpy": "renpy"
}
},
{
"scopeName": "text.log.injection",
"path": "./syntaxes/log.injection.json",
"injectTo": [
"text.log"
]
}
],
"snippets": [
{
"language": "renpy",
"path": "./snippets/snippets.json"
}
],
"commands": [
{
"command": "renpy.refreshNavigationData",
"title": "Renpy: Refresh Ren'Py Navigation Data"
},
{
"command": "renpy.compileNavigationData",
"title": "Renpy: Compile Ren'Py Navigation Data"
},
{
"command": "renpy.refreshDiagnostics",
"title": "Renpy: Refresh Ren'Py diagnostics for the active editor window"
},
{
"command": "renpy.toggleTokenDebugView",
"title": "Renpy: Toggle token debug visualization"
},
{
"command": "renpy.migrateOldFiles",
"title": "Renpy: Cleanup unused compiled Ren'Py source files"
},
{
"command": "renpy.runCommand",
"title": "Renpy: Run Project",
"category": "Run",
"icon": "$(play)"
}
],
"debuggers": [
{
"type": "renpy",
"label": "Ren'Py",
"languages": [
"renpy"
],
"runtime": "node",
"configurationAttributes": {
"launch": {
"required": [],
"properties": {
"command": {
"type": "string",
"description": "Command to run Ren'Py with.",
"default": "run"
},
"args": {
"type": "array",
"description": "Args to run Ren'Py with.",
"default": []
}
}
}
},
"initialConfigurations": [
{
"type": "renpy",
"request": "launch",
"name": "Ren'Py: Launch",
"command": "run",
"args": []
}
],
"configurationSnippets": [
{
"label": "Ren'Py",
"description": "A new configuration for launching a Ren'Py project",
"body": {
"type": "renpy",
"request": "launch",
"name": "Ren'Py",
"command": "run",
"args": []
}
}
]
}
],
"taskDefinitions": [
{
"type": "renpy",
"required": [
"command"
],
"properties": {
"command": {
"type": "string",
"description": "Command to run Ren'Py with.",
"default": "run"
},
"args": {
"type": "array",
"description": "Args to run Ren'Py with.",
"default": []
}
}
}
],
"configuration": [
{
"title": "Ren'Py",
"properties": {
"renpy.excludeCompiledFilesFromWorkspace": {
"type": "boolean",
"default": true,
"description": "Exclude *.rpyc, *.rpa, *.rpymc files and the cache/ folder from the workspace explorer. (This will add a .vscode settings file to your workspace)"
},
"renpy.watchFoldersForChanges": {
"type": "boolean",
"default": false,
"description": "Watch resource folders, such as images and audio, for file changes. (This may not be fully supported on all platforms.)"
},
"renpy.showAutomaticImagesInCompletion": {
"type": "boolean",
"default": true,
"description": "Show Automatic Images in the displayable auto-completion list. If not checked (false), only images defined in the script will be shown. If checked (true), both script-defined images and images detected in the images folders will be shown."
},
"renpy.diagnostics.diagnosticMode": {
"type": "string",
"default": "openFilesOnly",
"enum": [
"openFilesOnly",
"workspace"
],
"enumDescriptions": [
"Only diagnoses open files.",
"Diagnose all Ren'Py files in the workspace. This mode applies recursive expressions that can be resource-intensive in projects with a large codebase."
],
"description": "Select whether to analyze all Ren'Py files in the workspace or only open files (default)."
},
"renpy.diagnostics.warnOnObsoleteMethods": {
"type": "boolean",
"default": true,
"description": "Enable obsolete method warnings. If checked (true), obsolete methods (e.g., im.Crop) will be marked with a warning in the editor."
},
"renpy.diagnostics.warnOnUndefinedPersistents": {
"type": "boolean",
"default": true,
"description": "Enable undefined persistent warnings. If checked (true), persistent variables will be marked with a warning in the editor if they haven't been defaulted/defined."
},
"renpy.diagnostics.warnOnUndefinedStoreVariables": {
"type": "boolean",
"default": true,
"description": "Enable undefined store variable warnings. If checked (true), store variables will be marked with a warning in the editor if they haven't been defaulted/defined."
},
"renpy.diagnostics.warnOnReservedVariableNames": {
"type": "boolean",
"default": true,
"description": "Enable reserved variable warnings. If checked (true), variables will be marked with an error in the editor if they are in the list of names reserved by Python."
},
"renpy.diagnostics.warnOnInvalidVariableNames": {
"type": "boolean",
"default": true,
"description": "Enable invalid variable errors. Variables must begin with a letter or number. They may contain a '_' but may not begin with '_'. If set to true, variables will be flagged in the editor if they do not meet Ren'Py's specifications."
},
"renpy.diagnostics.warnOnIndentationAndSpacingIssues": {
"type": "string",
"default": "Error",
"enum": [
"Error",
"Warning",
"Disabled"
],
"enumDescriptions": [
"Display indentation issues as errors",
"Display indentation issues as warnings",
"Ignore indentation issues"
],
"description": "Enable indentation and inconsistent spacing checks. If set to Error or Warning, tab characters and inconsistent indentation spacing will be marked in the editor. If set to Disabled, indentation issues will be ignored."
},
"renpy.diagnostics.warnOnInvalidFilenameIssues": {
"type": "string",
"default": "Error",
"enum": [
"Error",
"Warning",
"Disabled"
],
"enumDescriptions": [
"Display filename issues as errors",
"Display filename issues as warnings",
"Ignore filename issues"
],
"description": "Enable filename checks. Filenames must begin with a letter or number, and may not begin with '00', as Ren'Py uses such files for its own purposes. If set to Error or Warning, documents will be marked in the editor if the document filename does not meet Ren'Py's specifications. If set to Disabled, filename issues will be ignored."
},
"renpy.renpyExecutableLocation": {
"type": "string",
"default": "",
"description": "Location of Ren'Py installation. Should be .exe on Windows and .sh on Mac/Linux."
}
}
}
]
},
"scripts": {
"vscode:prepublish": "npm run package",
"package": "webpack --mode production --devtool hidden-source-map",
"watch": "webpack --mode development --watch",
"watch-release": "webpack --mode production --watch",
"test-compile": "tsc -p ./",
"test": "npm run test-compile && node ./node_modules/vscode/bin/test",
"lint": "eslint -c .eslintrc.json --ext .ts ./src/",
"vsce-package": "vsce package -o language-renpy.vsix",
"format-check": "prettier --check 'src/**/*.ts' '.github/**/*.yml'"
},
"devDependencies": {
"@types/mocha": "^10.0.7",
"@types/node": "^20.14.10",
"@types/vscode": "1.75",
"@types/webpack": "^5.28.5",
"@typescript-eslint/eslint-plugin": "^7.15.0",
"@typescript-eslint/parser": "^7.15.0",
"@vscode/debugadapter": "^1.66.0",
"@vscode/vsce": "^2.29.0",
"copy-webpack-plugin": "^12.0.2",
"eslint": "^8.42.0",
"eslint-plugin-import": "^2.29.1",
"fork-ts-checker-webpack-plugin": "^9.0.2",
"node-polyfill-webpack-plugin": "^4.0.0",
"prettier": "^3.3.2",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"typescript": "^5.5.3",
"vscode-test": "^1.6.1",
"webpack": "^5.92.1",
"webpack-cli": "^5.1.4"
}
}