-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
212 lines (212 loc) · 5.03 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
{
"name": "vs-fivem",
"displayName": "VS FiveM IntelliSense",
"description": "Adds highly detailed, in-depth, up-to-date fivem native support for lua to vs-code.",
"version": "3.0.5",
"author": "coalaura",
"publisher": "coalaura",
"icon": "logo.png",
"galleryBanner": {
"color": "#0F1622",
"theme": "dark"
},
"license": "SEE LICENSE IN LICENSE",
"keywords": [
"lua",
"fivem",
"native",
"natives",
"gta",
"script",
"glm",
"intellisense"
],
"repository": {
"type": "git",
"url": "https://github.com/coalaura/vs-fivem"
},
"engines": {
"vscode": "^1.77.0"
},
"categories": [
"Linters",
"Snippets",
"Programming Languages"
],
"activationEvents": [
"workspaceContains:**/*.lua",
"onLanguage:lua",
"onLanguage:json"
],
"main": "./dist/extension.js",
"contributes": {
"configuration": {
"title": "VS-FiveM",
"properties": {
"vs-fivem.showSyntaxErrors": {
"type": "boolean",
"default": true,
"markdownDescription": "Show LUA syntax errors as diagnostics. (Turn this off if you have a language server providing syntax errors.)"
},
"vs-fivem.eventDefinitions": {
"type": "boolean",
"default": true,
"markdownDescription": "Index event definitions and provide ctrl + click support."
},
"vs-fivem.showInlineHints": {
"type": "boolean",
"default": true,
"markdownDescription": "Show inline hints (e.g. PedConfigFlag resolve, etc.)."
},
"vs-fivem.disableAllDiagnostics": {
"type": "boolean",
"default": false,
"markdownDescription": "Disable all diagnostics. (Requires restart)"
},
"vs-fivem.provideCodeActions": {
"type": "boolean",
"default": true,
"markdownDescription": "Provide code actions (e.g. quick fixes). (Requires restart)"
},
"vs-fivem.provideDiagnostics": {
"type": "boolean",
"default": true,
"markdownDescription": "Provide diagnostics (e.g. missing files, etc.). Does not include syntax errors."
},
"vs-fivem.diagnosticDebounce": {
"type": "integer",
"default": 750,
"markdownDescription": "Debounce time for diagnostics on file changes (in milliseconds)."
},
"vs-fivem.excludeFilesRegex": {
"type": "string",
"default": "",
"markdownDescription": "A regex (case-insensitive) matching all files that should be excluded from linting/diagnostics."
}
}
},
"commands": [
{
"command": "vs-fivem.lintFolder",
"title": "VS-FiveM: Lint folder"
},
{
"command": "vs-fivem.fixAll",
"title": "VS-FiveM: Fix all Diagnostics"
},
{
"command": "vs-fivem.clearAll",
"title": "VS-FiveM: Clear all Diagnostics"
},
{
"command": "vs-fivem.createResource",
"title": "Create new FiveM resource"
},
{
"command": "vs-fivem.convertFxManifest",
"title": "Convert to fxmanifest.lua"
},
{
"command": "vs-fivem.createEvent",
"title": "Insert Event Listener"
},
{
"command": "vs-fivem.createEnsureThread",
"title": "Insert Ensure New Thread"
},
{
"command": "vs-fivem.convertJSON",
"title": "Convert JSON to Lua"
},
{
"command": "vs-fivem.reverseJoaat",
"title": "Reverse JOAAT hash"
}
],
"menus": {
"explorer/context": [
{
"when": "explorerResourceIsFolder",
"command": "vs-fivem.lintFolder",
"group": "2_workspace"
},
{
"when": "explorerResourceIsFolder",
"command": "vs-fivem.createResource",
"group": "2_workspace"
},
{
"when": "resourceScheme == file && resourceFilename == '__resource.lua'",
"command": "vs-fivem.convertFxManifest",
"group": "2_workspace"
}
],
"editor/context": [
{
"when": "editorLangId == lua",
"command": "vs-fivem.createEvent",
"group": "2_modification"
},
{
"when": "editorLangId == lua",
"command": "vs-fivem.createEnsureThread",
"group": "2_modification"
},
{
"when": "editorLangId == lua && editorHasSelection",
"command": "vs-fivem.reverseJoaat",
"group": "2_modification"
},
{
"when": "editorLangId == json",
"command": "vs-fivem.convertJSON",
"group": "2_modification"
}
]
},
"viewsContainers": {
"activitybar": [
{
"id": "natives-search",
"title": "Natives",
"icon": "nav-icon.svg"
}
]
},
"views": {
"natives-search": [
{
"id": "vs-fivem.search",
"name": "Search",
"type": "webview"
}
]
}
},
"scripts": {
"lint": "eslint .",
"package": "npm run build && vsce package",
"build": "node esbuild.config.js",
"watch": "node esbuild.config.js --watch"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/vscode": "^1.77.0",
"axios": "^1.7.7",
"esbuild": "^0.19.5",
"esbuild-copy-static-files": "^0.1.0",
"eslint": "^8.36.0",
"fast-glob": "^3.3.2",
"glob": "^8.1.0",
"luaparse": "^0.3.1",
"mocha": "^10.2.0",
"typescript": "^4.9.5"
},
"dependencies": {
"antlr4": "^4.13.2",
"marked": "^4.3.0",
"vsce": "^2.15.0"
}
}