-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
304 lines (304 loc) · 8.73 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
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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
{
"name": "dart-polisher",
"displayName": "Dart Polisher - Formatter",
"description": "Dart formatter, custom indents and styles, based on dart_style",
"version": "0.9.6-dev",
"publisher": "xnfo",
"repository": {
"type": "git",
"url": "https://github.com/xnfo-dart/dart-polisher-vscode.git"
},
"engines": {
"vscode": "^1.70.0"
},
"capabilities": {
"virtualWorkspaces": {
"supported": "limited",
"description": "Some functionality may be limited for remote files in virtual workspaces."
},
"untrustedWorkspaces": {
"supported": true
}
},
"license": "IN LICENSE file",
"bugs": {
"url": "https://github.com/xnfo-dart/dart-polisher-vscode/issues"
},
"categories": [
"Formatters"
],
"keywords": [
"dart",
"formatter",
"format",
"dart format",
"dart formatter",
"dart xnfo format",
"dart xnfo",
"polisher",
"polish dart",
"format dart",
"dart polisher"
],
"icon": "media/dart_polisher2.png",
"activationEvents": [
"onLanguage:dart"
],
"main-ts": "./out/src/extension/extension.js",
"main": "./out/dist/extension.js",
"browser": "./out/dist/extension-web.js",
"contributes": {
"menus": {
"commandPalette": [
{
"command": "dart-polisher.startLogging",
"when": "dart-polisher:anyProjectLoaded && !isWeb"
},
{
"command": "dart-polisher.stopLogging",
"when": "dart-polisher:anyProjectLoaded && dart-polisher:isCapturingLogs && !isWeb"
},
{
"command": "dart-polisher.openExtensionLog",
"when": "dart-polisher:anyProjectLoaded && !isWeb"
},
{
"command": "dart-polisher.restartFormatterServer",
"when": "dart-polisher:anyProjectLoaded && !isWeb"
}
]
},
"commands": [
{
"command": "dart-polisher.restartFormatterServer",
"title": "Restart Dart Formatter Server",
"category": "Dart Formatter Server"
},
{
"command": "dart-polisher.startLogging",
"title": "Capture Logs",
"category": "Dart Formatter"
},
{
"command": "dart-polisher.openExtensionLog",
"title": "Open Extension Log",
"category": "Dart Formatter"
},
{
"command": "dart-polisher.stopLogging",
"title": "Stop Capturing Logs",
"category": "Dart Formatter"
}
],
"configuration": [
{
"title": "Formatter",
"order": 1,
"properties": {
"dart-polisher.enableFormatter": {
"type": "boolean",
"default": true,
"markdownDescription": "Whether to enable the [Dart Polisher](https://github.com/xnfo-dart/dart-polisher) for Dart.",
"scope": "window"
},
"dart-polisher.doNotFormat": {
"type": "array",
"default": [],
"markdownDescription": "An array of glob patterns that should be excluded for formatting. The pattern is matched against the absolute path of the file. Use `**/test/**` to skip formatting for all test directories.",
"items": {
"type": "string"
},
"scope": "resource"
},
"dart-polisher.formatterServerPath": {
"type": [
"null",
"string"
],
"default": null,
"description": "The path to a custom Dart Formatter Server. This setting is intended for use by Dart Format Server developers.",
"scope": "machine-overridable"
},
"dart-polisher.formatterSshHost": {
"type": [
"null",
"string"
],
"default": null,
"description": "An SSH host to run the Formatter Server.\nThis can be useful when modifying code on a remote machine using SSHFS.",
"scope": "window"
},
"dart-polisher.notifyFormatterErrors": {
"type": "boolean",
"default": true,
"description": "Whether to show a notification the first few times an Formatter Server exception occurs.",
"scope": "window"
},
"dart-polisher.formatterAdditionalArgs": {
"type": "array",
"default": [],
"description": "Additional arguments to pass to the Dart Formatter Server. This setting is intended for use by Dart Format Server developers.",
"scope": "window",
"items": {
"type": "string"
}
}
}
},
{
"title": "Formatting settings",
"order": 1,
"properties": {
"dart-polisher.lineLength": {
"type": "integer",
"default": 90,
"description": "The maximum length of a line of code. This is used by the document formatter.",
"scope": "resource",
"order": 10
},
"dart-polisher.expressionIndent": {
"type": [
"null",
"number"
],
"default": null,
"markdownDescription": "The number of spaces in a single level of expression nesting. Defaults to `#editor.tabSize#`",
"scope": "resource",
"minimum": 0,
"order": 20
},
"dart-polisher.blockIndent": {
"type": [
"null",
"number"
],
"default": null,
"markdownDescription": "The number of spaces in a block or collection body. Defaults to `#editor.tabSize#`",
"scope": "resource",
"minimum": 0,
"order": 21
},
"dart-polisher.cascadeIndent": {
"type": [
"null",
"number"
],
"default": null,
"markdownDescription": "How much wrapped cascade sections indent. Defaults to `#editor.tabSize#`",
"scope": "resource",
"minimum": 0,
"order": 22
},
"dart-polisher.constructorInitializerIndent": {
"type": [
"null",
"number"
],
"default": null,
"markdownDescription": "The ':' on a wrapped constructor initialization list. Defaults to `#editor.tabSize#`",
"scope": "resource",
"minimum": 0,
"order": 23
},
"dart-polisher.style": {
"type": "string",
"default": "Dart Style",
"enum": [
"Dart Style",
"Expanded Style"
],
"enumDescriptions": [
"Original Dart Style (with the ability to set custom indent sizes).",
"[beta] An outer braces style based on Dart Style."
],
"scope": "resource",
"order": 5
}
}
},
{
"title": "Logging",
"order": 1,
"properties": {
"dart-polisher.maxLogLineLength": {
"type": "number",
"default": 2000,
"description": "The maximum length of a line in the log file. Lines longer than this will be truncated and suffixed with an ellipsis.",
"scope": "window",
"order": 30
},
"dart-polisher.extensionLogFile": {
"type": [
"null",
"string"
],
"default": null,
"description": "The path to a low-traffic log file for basic extension and editor issues.",
"scope": "machine-overridable",
"order": 10
},
"dart-polisher.polisherLogFile": {
"type": [
"null",
"string"
],
"default": null,
"description": "The path to a log file for communication between VSCode Extension and the Polisher server handler.",
"scope": "machine-overridable",
"order": 20
},
"dart.formatterInstrumentationLogFile": {
"type": [
"null",
"string"
],
"default": null,
"description": "The path to a log file for very detailed logging in the Formatter server that may be useful when trying to diagnose issues.",
"scope": "machine-overridable",
"order": 40
}
}
}
]
},
"scripts": {
"ts-vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"watch-ext": "tsc -p ./ --watch --extendedDiagnostics",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/src/test/runTest.js",
"vscode:prepublish": "npm run package",
"webpack": "webpack --mode development",
"webpack-watch": "webpack --mode development --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"test-compile": "tsc -p ./",
"browser-chrome": "vscode-test-web --browserType=chromium --open-devtools --extensionDevelopmentPath=. E:\\Sources\\dart\\test\\test_dart_console",
"browser-firefox": "vscode-test-web --browserType=firefox --open-devtools --extensionDevelopmentPath=. E:\\Sources\\dart\\test\\test_dart_console",
"browser-webkit": "vscode-test-web --browserType=webkit --open-devtools --extensionDevelopmentPath=. E:\\Sources\\dart\\test\\test_dart_console"
},
"dependencies": {
"minimatch": "^5.1.2",
"semver": "^7.3.8"
},
"devDependencies": {
"@types/glob": "^8.0.0",
"@types/mocha": "^9.1.1",
"@types/node": "16.18.11",
"@types/semver": "^7.3.13",
"@types/vscode": "^1.70.0",
"@typescript-eslint/eslint-plugin": "^5.48.0",
"@typescript-eslint/parser": "^5.48.0",
"@vscode/test-electron": "^2.1.5",
"@vscode/test-web": "*",
"dart-polisher": "^0.10.7",
"eslint": "^8.31.0",
"glob": "^8.0.3",
"mocha": "^9.2.2",
"ts-loader": "^9.4.2",
"typescript": "^4.9.4",
"webpack": "^5.76.0",
"webpack-cli": "^5.0.1"
}
}