-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
242 lines (242 loc) · 7 KB
/
package.json
File metadata and controls
242 lines (242 loc) · 7 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
{
"name": "qmlsense",
"displayName": "QMLSense",
"description": "QML language support with tree-sitter",
"version": "0.3.2",
"author": "Artem Grinev",
"publisher": "agrinev",
"icon": "images/icon.png",
"galleryBanner": {
"color": "#1e1e1e",
"theme": "dark"
},
"engines": {
"vscode": "^1.63.0"
},
"categories": [
"Programming Languages"
],
"main": "./out/extension.js",
"activationEvents": [
"onLanguage:qml",
"onLanguage:qmldir"
],
"repository": {
"url": "https://github.com/LordTermor/QMLSense",
"type": "git"
},
"contributes": {
"languages": [
{
"id": "qml",
"extensions": [
".qml",
".qmlproject"
],
"configuration": "./qml.configuration.json"
},
{
"id": "qmldir",
"filenames": [
"qmldir"
],
"aliases": [
"QML Module Definition"
],
"configuration": "./qml.configuration.json",
"icon": {
"light": "./images/qmldir-file-light.svg",
"dark": "./images/qmldir-file-dark.svg"
}
}
],
"grammars": [
{
"language": "qml",
"scopeName": "source.qml",
"path": "./syntaxes/qml.tmLanguage.json"
},
{
"language": "qmldir",
"scopeName": "source.qmldir",
"path": "./syntaxes/qmldir.tmLanguage.json"
}
],
"semanticTokenScopes": [
{
"language": "qml",
"scopes": {
"class": [
"entity.name.type.qml",
"support.class.qml"
],
"property": [
"variable.other.property.qml"
],
"function": [
"entity.name.function.qml"
],
"event": [
"entity.name.function.signal.qml"
],
"variable": [
"variable.other.qml",
"variable.other.readwrite.qml"
],
"keyword": [
"keyword.control.qml",
"keyword.other.qml",
"storage.type.qml"
],
"type": [
"storage.type.primitive.qml",
"entity.name.type.qml"
],
"namespace": [
"entity.name.namespace.qml",
"support.type.module.qml"
],
"decorator": [
"entity.name.decorator.qml",
"meta.decorator.qml"
]
}
}
],
"commands": [
{
"command": "qml.indexer.reindexWorkspace",
"title": "QML Indexer: Reindex Workspace",
"category": "QML",
"enablement": "isInDevelopmentMode"
},
{
"command": "qml.indexer.dumpIndex",
"title": "QML Indexer: Dump Index to Output",
"category": "QML",
"enablement": "isInDevelopmentMode"
},
{
"command": "qml.indexer.showDependencyGraph",
"title": "QML Indexer: Show Dependency Graph",
"category": "QML",
"enablement": "isInDevelopmentMode"
},
{
"command": "qml.indexer.showFileInfo",
"title": "QML Indexer: Show Current File Info",
"category": "QML",
"enablement": "isInDevelopmentMode"
},
{
"command": "qml.indexer.clearCache",
"title": "QML Indexer: Clear Index Cache",
"category": "QML",
"enablement": "isInDevelopmentMode"
},
{
"command": "qml.ast.showAtCursor",
"title": "QML AST: Show Tree at Cursor",
"category": "QML",
"enablement": "isInDevelopmentMode"
},
{
"command": "qml.ast.showFullTree",
"title": "QML AST: Show Full Tree",
"category": "QML",
"enablement": "isInDevelopmentMode"
},
{
"command": "qml.indexer.showModuleIndex",
"title": "QML Indexer: Show Module Index",
"category": "QML",
"enablement": "isInDevelopmentMode"
},
{
"command": "qml.indexer.resolveComponent",
"title": "QML Indexer: Resolve Component",
"category": "QML",
"enablement": "isInDevelopmentMode"
},
{
"command": "qml.semanticTokens.inspectAtCursor",
"title": "QML Tokens: Inspect at Cursor",
"category": "QML",
"enablement": "isInDevelopmentMode"
},
{
"command": "qml.semanticTokens.debugClassification",
"title": "QML Tokens: Debug Classification",
"category": "QML",
"enablement": "isInDevelopmentMode"
},
{
"command": "qml.selection.debugExpansion",
"title": "QML Selection: Debug Expansion",
"category": "QML",
"enablement": "isInDevelopmentMode"
}
],
"configuration": {
"title": "QML",
"properties": {
"qml.semanticHighlighting.enabled": {
"type": "boolean",
"default": true,
"description": "Enable semantic syntax highlighting using tree-sitter (recommended). Disable to use only TextMate grammar."
},
"qml.indexing.enableOnStartup": {
"type": "boolean",
"default": true,
"description": "Automatically index workspace QML files on startup for cross-file navigation."
},
"qml.indexing.batchSize": {
"type": "number",
"default": 200,
"minimum": 10,
"maximum": 1000,
"description": "Number of files to process in parallel batches. Higher values = faster indexing but more memory usage."
},
"qml.indexing.ignoreFolders": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"**/node_modules/**",
"**/build/**",
"**/dist/**",
"**/.git/**",
"**/out/**"
],
"description": "Glob patterns for folders to ignore during QML file indexing."
}
}
}
},
"scripts": {
"vscode:prepublish": "node scripts/version-dev.js && tsc -p ./ && npm run postcompile",
"compile": "tsc -p ./ && npm run postcompile",
"compile:release": "node scripts/version-release.js && tsc -p ./ && npm run postcompile",
"postcompile": "npm run copy:data && npm run copy:libs && npm run copy:wasm",
"copy:data": "mkdir -p out/indexer/data && cp src/indexer/data/qt-builtins.json out/indexer/data/",
"copy:libs": "mkdir -p lib && cp -r node_modules/web-tree-sitter lib/ && cp -r node_modules/@vscode/sqlite3 lib/sqlite3",
"copy:wasm": "mkdir -p lib && cp node_modules/tree-sitter-qmljs/tree-sitter-qmljs.wasm lib/",
"build:wasm": "cd node_modules/tree-sitter-qmljs && npx tree-sitter build-wasm",
"version:dev": "node scripts/version-dev.js",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile"
},
"devDependencies": {
"@types/node": "^20.11.0",
"@types/vscode": "^1.63.0",
"@vscode/vsce": "^3.7.1",
"tree-sitter-cli": "^0.20.8",
"typescript": "^5.3.3"
},
"dependencies": {
"@vscode/sqlite3": "^5.1.9-vscode",
"tree-sitter-qmljs": "^0.3.0",
"web-tree-sitter": "^0.20.8"
}
}