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
|
{
"name": "qt-qml",
"displayName": "Qt Qml",
"description": "Qt Qml Support",
"version": "1.1.0",
"homepage": "https://www.qt.io/",
"icon": "res/icons/qt.png",
"publisher": "theqtcompany",
"repository": {
"type": "git",
"url": "https://github.com/qt-labs/vscodeext"
},
"bugs": {
"url": "https://bugreports.qt.io/projects/VSCODEEXT"
},
"engines": {
"vscode": "^1.94.0"
},
"categories": [
"Programming Languages",
"Formatters",
"Snippets"
],
"keywords": [
"Qt",
"Qml"
],
"qna": "marketplace",
"pricing": "Free",
"activationEvents": [
"workspaceContains:*.qml",
"workspaceContains:*.qmldir"
],
"main": "./out/extension.js",
"l10n": "./l10n",
"contributes": {
"commands": [
{
"command": "qt-qml.restartQmlls",
"title": "%qt-qml.command.restartQmlls.title%",
"category": "Qt"
},
{
"command": "qt-qml.checkQmllsUpdate",
"title": "%qt-qml.command.checkQmllsUpdate.title%",
"category": "Qt"
},
{
"command": "qt-qml.downloadQmlls",
"title": "%qt-qml.command.downloadQmlls.title%",
"category": "Qt"
}
],
"languages": [
{
"id": "qml",
"configuration": "./res/lang/qml/language-configuration.json",
"extensions": [
".qml",
".qmlproject"
],
"aliases": [
"QML",
"Qml",
"qml"
],
"icon": {
"light": "res/icons/qml-light.svg",
"dark": "res/icons/qml-dark.svg"
}
},
{
"id": "qmldir",
"configuration": "./res/lang/qmldir/language-configuration.json",
"filenames": [
"qmldir"
],
"aliases": [
"QMLDir",
"qmldir"
]
}
],
"grammars": [
{
"language": "qml",
"scopeName": "source.qml",
"path": "./res/lang/qml/qml.qmlproject.tmLanguage.json"
},
{
"language": "qmldir",
"scopeName": "source.qmldir",
"path": "./res/lang/qmldir/qmldir.tmLanguage.json"
}
],
"configuration": {
"type": "object",
"title": "Qt Qml Configuration",
"properties": {
"qt-qml.qmlls.enabled": {
"type": "boolean",
"default": true,
"description": "Run qmlls when activating an extension",
"scope": "machine-overridable"
},
"qt-qml.qmlls.verboseOutput": {
"type": "boolean",
"default": false,
"description": "Run qmlls with --verbose option",
"scope": "machine-overridable"
},
"qt-qml.qmlls.traceLsp": {
"type": "string",
"default": "off",
"enum": [
"off",
"messages",
"compact",
"verbose"
],
"enumDescriptions": [
"Off",
"Show messages only",
"Show messages with parameters as compact JSON",
"Show messages with parameters as multiline JSON"
],
"description": "Handle LSP trace",
"scope": "machine-overridable"
},
"qt-qml.qmlls.customExePath": {
"type": "string",
"default": "",
"description": "Specify the custom qmlls executable path",
"scope": "machine-overridable"
},
"qt-qml.qmlls.additionalImportPaths": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Look for QML modules in the specified directories. Each entry will be added via the \"-I\" command argument when starting qmlls",
"scope": "machine-overridable"
},
"qt-qml.qmlls.useQmlImportPathEnvVar": {
"type": "boolean",
"default": false,
"description": "Use the QML_IMPORT_PATH environment variable to look for QML Modules. When set to true, the \"-E\" command argument will be added when starting qmlls",
"scope": "machine-overridable"
},
"qt-qml.doNotAskForQmllsDownload": {
"type": "boolean",
"default": false,
"description": "Do not ask for downloading qmlls",
"scope": "machine"
}
}
}
},
"taskDefinitions": [
{
"type": "Qt"
}
],
"extensionDependencies": [
"theqtcompany.qt-core"
],
"scripts": {
"vscode:prepublish": "cross-env NODE_ENV=production node ./esbuild.mjs && git rev-parse HEAD > commit",
"compile": "node ./esbuild.mjs",
"watch": "node ./esbuild.mjs --watch",
"pretest": "npm run compile && npm run lint",
"lint": "npm run prettierWrite && eslint . --fix --cache",
"prettierWrite": "npm run prettierBase -- --write \"**/*.{js,ts,json,mjs,cjs}\" --log-level silent",
"prettierCheck": "npm run prettierBase -- --check \"**/*.{js,ts,json,mjs,cjs}\"",
"prettierBase": "prettier --config \"../common/.prettierrc\" --ignore-path \"../common/.prettierignore\" --cache --cache-strategy metadata",
"package": "vsce package --out out"
},
"devDependencies": {
"@types/license-checker": "^25.0.6",
"@types/node": "^20.17.0",
"@types/vscode": "^1.94.0",
"@types/yauzl": "^2.10.3",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@vscode/l10n-dev": "^0.0.30",
"@vscode/test-electron": "^2.4.1",
"@vscode/vsce": "^2.32.0",
"chai": "^4.5.0",
"commander": "^11.1.0",
"cross-env": "^7.0.3",
"esbuild": "^0.20.2",
"eslint": "^8.57.1",
"license-checker": "^25.0.1",
"mocha": "^10.7.3",
"prettier": "^3.3.3",
"ts-node": "^10.9.2",
"typescript": "^5.6.3"
},
"dependencies": {
"@vscode/l10n": "^0.0.16",
"module-alias": "^2.2.3",
"qt-lib": "file:../qt-lib",
"typescript": "^5.6.3",
"untildify": "^5.0.0",
"vscode-languageclient": "^9.0.1",
"yauzl": "^3.1.3"
}
}
|