-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
194 lines (194 loc) · 5.83 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
{
"name": "cod-gsc",
"displayName": "CoD GSC",
"description": "GSC language support for Call of Duty (CoD1, CoD2, CoD3, CoD4, CoD5:WaW, CoD6:MW2, COD7:BO)",
"version": "0.3.0",
"publisher": "eyza",
"icon": "logo.png",
"license": "LGPL-3.0-or-later",
"engines": {
"vscode": "^1.92.0"
},
"categories": [
"Programming Languages"
],
"keywords": [
"gsc",
"cod",
"script",
"call of duty"
],
"repository": {
"type": "git",
"url": "https://github.com/eyza-cod2/vscode-cod-gsc.git"
},
"activationEvents": [],
"main": "./out/extension.js",
"contributes": {
"languages": [
{
"id": "gsc",
"aliases": [
"GSC",
"gsc"
],
"extensions": [
".gsc"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "gsc",
"scopeName": "source.gsc",
"path": "./syntaxes/gsc.tmLanguage.json"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "gsc-sidebar",
"title": "GSC",
"icon": "images/gsc-sidebar.svg"
}
]
},
"views": {
"gsc-sidebar": [
{
"id": "gsc-view-workspace-info",
"name": "Workspace info"
},
{
"id": "gsc-view-file-info",
"name": "File info"
},
{
"id": "gsc-view-other",
"name": "Other",
"type": "webview"
}
]
},
"commands": [
{
"command": "gsc.selectGame",
"title": "Select game"
},
{
"command": "gsc.debugParsedGscFile",
"title": "GSC: Print parsed GSC file data into console"
},
{
"command": "gsc.debugParsedGscFileStructure",
"title": "GSC: Print parsed GSC file structure into console"
},
{
"command": "gsc.debugItemBeforeCursor",
"title": "GSC: Print GSC item before cursor"
},
{
"command": "gsc.debugParsedUris",
"title": "GSC: Print parsed URIs into console"
},
{
"command": "gsc.debugCachedFiles",
"title": "GSC: Debug cached files in window"
},
{
"command": "gsc.refreshDiagnosticsCollection",
"title": "GSC: Refresh diagnostics collection"
},
{
"command": "gsc.parseAll",
"title": "GSC: Parse all files"
},
{
"command": "gsc.showErrorInfo",
"title": "GSC: Report an Issue"
}
],
"configuration": {
"title": "GSC",
"properties": {
"gsc.errorDiagnostics": {
"type": "string",
"enum": [
"Enable",
"Disable"
],
"default": "Enable",
"description": "Enables error diagnostics for GSC files like syntax errors, unknown files, undefined functions, etc.",
"scope": "resource"
},
"gsc.game": {
"type": "string",
"enum": [
"Universal game",
"CoD2 MP",
"CoD2 SP"
],
"description": "The game for which the GSC files are intended. Each game has different syntax rules and list of predefined function.",
"scope": "resource"
},
"gsc.gameRootFolder": {
"type": "string",
"default": "",
"description": "Folder that will be used as a game root folder. Its relative to workspace folder. If empty, the workspace folder is used. For example, if your gsc files are in path `<workspace>/src/maps/mp/gametypes/_script.gsc`, and from game point of view the root folder path starts as `maps\\mp\\gametypes\\_script`, enter `src` into this field to specify the game root folder. This folder path is used for auto-completion, functions definitions and error diagnostics.",
"scope": "resource"
},
"gsc.ignoredFunctionNames": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"description": "An array of function names that will be ignored during error diagnostics (case insensitive). For example: `ignoredFunctionName`",
"scope": "resource"
},
"gsc.ignoredFilePaths": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"description": "An array of file paths that will be ignored during error diagnostics (case insensitive). For example: `maps\\mp\\gametypes\\ignoredScript`",
"scope": "resource"
},
"gsc.includedWorkspaceFolders": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"description": "An array of workspace folder names (in multi-root workspace) that will be included for GSC file references. Useful when your mod contains only part of the files and other files are in different folder (most common folder would be a 'raw' folder that contains the original game files). You have to add these folders into your workspace setup to be able to include the folders. If empty, each workspace folder is isolated from each other.",
"scope": "resource"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src",
"test": "vscode-test"
},
"devDependencies": {
"@types/mocha": "^10.0.9",
"@types/node": "20.x",
"@types/semver": "^7.5.8",
"@types/vscode": "^1.92.0",
"@typescript-eslint/eslint-plugin": "^8.13.0",
"@typescript-eslint/parser": "^8.13.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"eslint": "^9.14.0",
"typescript": "^5.6.3"
},
"dependencies": {
"semver": "^7.6.3"
}
}