forked from orcun-gokbulut/qml-debug
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
258 lines (258 loc) · 9.33 KB
/
Copy pathpackage.json
File metadata and controls
258 lines (258 loc) · 9.33 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
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
{
"name": "qml-debug",
"publisher": "orcun-gokbulut",
"displayName": "QML Debug",
"description": "Visual Studio Code debugging support for Qt QML language",
"version": "0.1.0",
"icon": "qml-debug.png",
"author": {
"name": "Y. Orçun Gökbulut",
"email": "orcun.gokbulut@gmail.com",
"url": "https://www.github.com/orcun-gokbulut"
},
"homepage": "https://github.com/orcun-gokbulut/qml-debug",
"bugs": {
"url": "https://github.com/orcun-gokbulut/qml-debug/issues",
"email": "orcun.gokbulut@gmail.com"
},
"repository": {
"type": "git",
"url": "https://www.github.com/orcun-gokbulut/qml-debug.git"
},
"license": "GPL-3.0",
"categories": [
"Debuggers"
],
"keywords": [
"QML",
"Qt",
"Debugger"
],
"engines": {
"vscode": "^1.54.0"
},
"main": "dist/extension.js",
"activationEvents": [
"onCommand:qml-debug.version",
"onCommand:qml-debug.copyright",
"onCommand:qml-debug.enableFilterFunctions",
"onCommand:qml-debug.disableFilterFunctions",
"onCommand:qml-debug.enableSortMembers",
"onCommand:qml-debug.disableSortMembers",
"onDebugResolve:qml"
],
"contributes": {
"commands": [
{
"command": "qml-debug.version",
"category": "QML Debug",
"title": "Version Information",
"icon": "$(law)"
},
{
"command": "qml-debug.copyright",
"category": "QML Debug",
"title": "Copyright Information",
"icon": "$(info)"
},
{
"command": "qml-debug.enableFilterFunctions",
"category": "QML Debug",
"title": "Show Functions",
"icon": "$(filter)"
},
{
"command": "qml-debug.disableFilterFunctions",
"category": "QML Debug",
"title": "Hide Functions",
"icon": "$(filter)"
},
{
"command": "qml-debug.enableSortMembers",
"category": "QML Debug",
"title": "Disable Sort",
"icon": "$(sort-precedence)"
},
{
"command": "qml-debug.disableSortMembers",
"category": "QML Debug",
"title": "Enable Sort",
"icon": "$(sort-precedence)"
}
],
"configuration": [
{
"title": "QML Debug",
"properties": {
"qml-debug.filterFunctions": {
"type": "boolean",
"default": true,
"description": "Hide member functions of object variables in Variables, Watches and Quick Watch views."
},
"qml-debug.sortMembers": {
"type": "boolean",
"default": true,
"description": "Sort members of object variables according to their names."
}
}
}
],
"languages": [
{
"id": "qml",
"aliases": [
"Qt QML"
],
"extensions": [
".qml"
]
}
],
"menus": {
"debug/variables/context": [
{
"command": "qml-debug.enableFilterFunctions",
"group": "options",
"when": "debugType == 'qml' && !qmldebug.filterFunctions"
},
{
"command": "qml-debug.disableFilterFunctions",
"group": "options",
"when": "debugType == 'qml' && qmldebug.filterFunctions"
},
{
"command": "qml-debug.enableSortMembers",
"group": "options",
"when": "debugType == 'qml' && !qmldebug.sortMembers"
},
{
"command": "qml-debug.disableSortMembers",
"group": "options",
"when": "debugType == 'qml' && qmldebug.sortMembers"
}
]
},
"breakpoints": [
{
"language": "qml"
}
],
"debuggers": [
{
"type": "qml",
"label": "QML Debugger",
"program": "./out/debug-adapter.js",
"runtime": "node",
"configurationAttributes": {
"attach": {
"required": [
"host",
"port"
],
"properties": {
"host": {
"type": "string",
"description": "Hostname (or ip address) of the target program's debug service.",
"default": "localhost"
},
"port": {
"type": "number",
"description": "Port of the target program's debug service."
},
"paths": {
"description": "List of qml source folders resource paths (qrc:/) to physical path mappings.",
"type": "object",
"patternProperties": {
".*": {
"type": [
"string",
"null"
]
}
}
},
"trace": {
"type": "boolean",
"description": "Enable logging of the Debug Adapter Protocol.",
"default": true
}
}
}
},
"initialConfigurations": [
{
"type": "qml",
"request": "attach",
"name": "Attach to QML Debugger",
"host": "localhost",
"port": 12150,
"paths": [],
"trace": false
}
],
"configurationSnippets": [
{
"label": "QML Debug: Attach",
"description": "A new configuration for 'debugging' QML based application. You can only attach to QML based application.",
"body": {
"name": "QML Debug: Attach",
"type": "qml",
"request": "attach",
"host": "localhost",
"port": 12150,
"paths": {
"qrc:/qml": "^\"\\${workspaceFolder}/<Folder that contain qml files>\""
}
}
}
]
}
]
},
"_moduleAliases": {
"@qml-debug": "./src",
"@qml-debug-root": "."
},
"scripts": {
"bootstrap": "npm install",
"bootstrap-prod": "npm install --production",
"compile": "tsc -p ./",
"lint": "eslint src --ext ts",
"typecheck": "tsc -p tsconfig.json --noEmit",
"esbuild-base": "esbuild ./src/extension.ts --bundle --tsconfig=./tsconfig.json --external:vscode --format=cjs --platform=node --sourcemap --outfile=dist/extension.js",
"watch": "npm run -S esbuild-base -- --sources-content=false --watch",
"build": "npm run -S esbuild-base -- --sources-content=false",
"package": "vsce package",
"publish": "vsce publish",
"publish-pre-release": "vsce publish --pre-release",
"vscode:prepublish": "rimraf dist && npm run -S esbuild-base -- --minify",
"test": "npm run typecheck",
"clean": "rm -rfv ./out/* ./dist/*",
"dist-clean": "rm -rfv ./package-lock.json ./node_modules ./out ./dist"
},
"devDependencies": {
"@types/glob": "^7.1.4",
"@types/mocha": "^9.0.0",
"@types/node": "14.x",
"@types/vscode": "^1.54.0",
"@typescript-eslint/eslint-plugin": "^5.1.0",
"@typescript-eslint/parser": "^5.1.0",
"@vscode/debugadapter-testsupport": "^1.51.0",
"@vscode/test-electron": "^1.6.2",
"esbuild": "^0.14.13",
"eslint": "^8.1.0",
"glob": "^7.1.7",
"mocha": "^9.1.3",
"typescript": "^4.4.4",
"vsce": "^2.6.4"
},
"dependencies": {
"@vscode/debugadapter": "^1.51.0",
"@vscode/debugprotocol": "^1.51.0",
"buffer-hex": "^1.0.0",
"colors": "^1.4.0",
"module-alias": "^2.2.2",
"promise-socket": "^7.0.0",
"source-map-support": "^0.5.21"
}
}