Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
165 lines (165 loc) · 5.18 KB
/
Copy pathpackage.json
File metadata and controls
165 lines (165 loc) · 5.18 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
{
"name": "project-zomboid-scripts",
"displayName": "ZedScripts (deprecated)",
"icon": "images/pz-script.png",
"description": "A Visual Studio Code extension to aid in editing Project Zomboid script files, also known as ZedScripts.",
"version": "1.15.3",
"publisher": "SimKDT",
"engines": {
"vscode": "^1.105.0"
},
"editor.semanticHighlighting.enabled": true,
"repository": {
"type": "git",
"url": "https://github.com/pz-wiki-modding/ZedScripts"
},
"bugs": {
"type": "git",
"url": "https://github.com/pz-wiki-modding/ZedScripts/issues"
},
"categories": [
"Programming Languages"
],
"main": "./out/extension.js",
"activationEvents": [
"onStartupFinished"
],
"contributes": {
"configuration": {
"type": "object",
"title": "ZedScripts",
"properties": {
"ZedScripts.searchDirectories": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"C:/Program Files (x86)/Steam/steamapps/common/ProjectZomboid/media/"
],
"description": "Libraries to search for script files and translations definitions. The vanilla game media folder should be included here, as well as any mods your workspace mod may depend on."
},
"ZedScripts.onlyUseLocalData": {
"type": "boolean",
"default": true,
"description": "Whether to only use local data for scripts. If turned off, the extension will attempt to download the latest scripts dataset from the pz-scripts-data repository. If the extension hasn't been updated in a while but the dataset yes, you may find this useful."
},
"ZedScripts.disabledDiagnostics": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "List of diagnostic IDs to disable."
},
"ZedScripts.disableAllDiagnostics": {
"type": "boolean",
"default": false,
"description": "Whether to disable all diagnostics."
},
"ZedScripts.noParsing": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"tileGeometry\\.txt",
"tileDepthTextureAssignments\\.txt",
".+\\.tiles\\.txt"
],
"description": "List of regex patterns of files to exclude from parsing. Preferably do not remove files from the default list or you risk getting into heavy loading times. Some irrelevant script files have also been added to this list."
},
"ZedScripts.fileDecorator": {
"type": "boolean",
"default": false,
"description": "Add a file decorator to ZedScripts files which will indicate they are ZedScripts files. Notably useful if you use an extension that overrides ZedScripts files icon but you still want an indicator that a file is a ZedScripts file."
}
}
},
"languages": [
{
"id": "ZedScripts",
"aliases": [
"ZedScripts",
"pz-scripts"
],
"configuration": "./src/language/ZedScripts.configuration.json",
"icon": {
"dark": "icons/zedscripts_dark.svg",
"light": "icons/zedscripts_light.svg"
}
}
],
"grammars": [
{
"language": "ZedScripts",
"scopeName": "source.pz-script",
"path": "./src/language/ZedScripts.tmLanguage.json"
}
],
"semanticTokenScopes": [
{
"scopes": {
"entity.name.recipe.pz": [
"entity.name.recipe"
],
"entity.name.item.pz": [
"entity.name.item"
],
"entity.name.recipe.name.pz": [
"entity.name.recipe.name"
],
"entity.name.item.name.pz": [
"entity.name.item.name"
],
"keyword.control.pz": [
"keyword.control"
],
"support.type.property-name.pz": [
"support.type.property-name"
]
}
}
],
"commands": [
{
"command": "ZedScripts.resetScriptsCache",
"title": "ZedScripts: Reset Scripts Cache"
},
{
"command": "ZedScripts.exportScriptsBlocks",
"title": "ZedScripts: Export to JSON"
},
{
"command": "ZedScripts.showDiagnosticTypes",
"title": "ZedScripts: Show Diagnostic IDs"
}
]
},
"scripts": {
"prebuild": "git submodule update --init --recursive",
"test": "@vscode/test-cli",
"test:jest": "jest tests",
"check": "tsc --noEmit && npm run test",
"compile": "tsc -p ./tsconfig.json",
"watch": "tsc -watch -p ./tsconfig.json",
"package": "npx @vscode/vsce package",
"publish": "npx @vscode/vsce publish"
},
"devDependencies": {
"@types/jest": "^30.0.0",
"@types/node": "^25.0.3",
"@types/vscode": "^1.105.0",
"@vscode/test-cli": "^0.0.11",
"@vscode/test-electron": "^2.5.2",
"@vscode/vsce": "^3.9.1",
"jest": "^30.4.2",
"ts-jest": "^29.4.12",
"typescript": "^5.9.3"
},
"allowScripts": {
"@vscode/vsce-sign@2.0.9": true,
"keytar@7.9.0": true,
"unrs-resolver@1.12.2": true
}
}