forked from satoren/vscode-lrdb
-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
196 lines (196 loc) · 5.88 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
{
"name": "gmrdb",
"displayName": "GMRDB",
"description": "Garry's Mod Remote DeBugger",
"version": "0.4.4",
"publisher": "metaman",
"engines": {
"vscode": "^1.78.1"
},
"categories": [
"Debuggers"
],
"dependencies": {
"lrdb-debuggable-lua": "^0.5.4",
"tree-kill": "^1.2.2",
"@vscode/debugadapter": "^1.68.0"
},
"activationEvents": [
"onDebug"
],
"repository": {
"type": "git",
"url": "https://github.com/danielga/vscode-gmrdb.git"
},
"bugs": {
"url": "https://github.com/danielga/vscode-gmrdb/issues"
},
"main": "./out/extension.js",
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -watch -p ./",
"package": "vsce package",
"publish": "vsce publish",
"build": "tsc",
"jest": "jest",
"test": "run-s build jest",
"lint": "run-s lint:eslint lint:prettier",
"lint:eslint": "eslint . --cache --ext ts",
"lint:prettier": "prettier . --check",
"fix": "run-s fix:eslint fix:prettier",
"fix:eslint": "eslint . --cache --ext ts --fix",
"fix:prettier": "prettier . --check --write"
},
"devDependencies": {
"@types/jest": "^29.5.14",
"@types/node": "^22.9.0",
"@types/vscode": "^1.95.0",
"@typescript-eslint/eslint-plugin": "^8.16.0",
"@typescript-eslint/parser": "^8.16.0",
"eslint": "^9.15.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jest": "^28.9.0",
"jest": "^29.7.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.3.3",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"typescript": "^5.7.2",
"@vscode/vsce": "^3.2.1",
"@vscode/debugadapter-testsupport": "^1.68.0",
"@vscode/debugprotocol": "^1.68.0",
"vscode-test": "^1.6.1"
},
"icon": "images/icon.png",
"license": "BSL-1.0",
"contributes": {
"breakpoints": [
{
"language": "lua"
},
{
"language": "glua"
}
],
"debuggers": [
{
"type": "gmrdb",
"label": "Garry's Mod Remote DeBugger",
"program": "./out/debugAdapter.js",
"runtime": "node",
"languages": [
"lua",
"glua"
],
"variables": {},
"configurationSnippets": [
{
"label": "Garry's Mod: (gmrdb) Launch",
"description": "A new configuration for launching a Garry's Mod instance.",
"body": {
"type": "gmrdb",
"request": "launch",
"name": "${2:Launch}",
"program": "Garry's Mod executable (either a client or SRCDS executable).",
"args": [],
"cwd": "${workspaceFolder}",
"sourceFileMap": {
"${workspaceFolder}": "."
}
}
},
{
"label": "Garry's Mod: (gmrdb) attach",
"description": "A new configuration for remotely debugging a Garry's Mod instance.",
"body": {
"type": "gmrdb",
"request": "attach",
"name": "${1:Attach}",
"host": "localhost",
"port": 21111,
"sourceFileMap": {
"${workspaceFolder}": "."
}
}
}
],
"configurationAttributes": {
"launch": {
"required": [
"program"
],
"properties": {
"program": {
"type": "string",
"description": "Garry's Mod executable (either a client or SRCDS executable).",
"default": "${file}"
},
"cwd": {
"type": "string",
"description": "Working directory (usually path where the executable is).",
"default": "${workspaceFolder}"
},
"args": {
"type": "array",
"description": "Command line arguments.",
"default": []
},
"port": {
"type": "number",
"description": "Port to connect to.",
"default": 21111
},
"sourceRoot": {
"type": "string",
"description": "Script source root directory (used in souce file matching at breakpoints).",
"default": "${workspaceFolder}"
},
"sourceFileMap": {
"type": "object",
"description": "Optional source file mappings passed to the debug engine (relates a local path to a target path).",
"default": {}
},
"stopOnEntry": {
"type": "boolean",
"description": "Automatically stop after launch.",
"default": true
}
}
},
"attach": {
"required": [
"sourceRoot"
],
"properties": {
"host": {
"type": "string",
"description": "Host name to connect to.",
"default": "localhost"
},
"port": {
"type": "number",
"description": "Port to connect to.",
"default": 21111
},
"sourceRoot": {
"type": "string",
"description": "Script source root directory (used in souce file matching at breakpoints).",
"default": "${workspaceFolder}"
},
"sourceFileMap": {
"type": "object",
"description": "Optional source file mappings passed to the debug engine (relates a local path to a target path).",
"default": {}
},
"stopOnEntry": {
"type": "boolean",
"description": "Automatically stop after launch.",
"default": true
}
}
}
}
}
]
}
}