-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
107 lines (107 loc) · 2.85 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
{
"name": "thirft-formatter",
"displayName": "Thrift Formatter",
"description": "Thrift file formatter, keeping and align comment",
"version": "1.5.0",
"engines": {
"vscode": "^1.67.0"
},
"categories": [
"Formatters"
],
"keywords": [
"thrift",
"formatter"
],
"activationEvents": [
"onLanguage:thrift",
"onCommand:thirft-formatter.formatThriftFile"
],
"browser": "./dist/web/extension.js",
"contributes": {
"languages": [
{
"id": "thrift",
"extensions": [
".thrift",
".Thrift"
],
"aliases": [
"Thrift",
"thrift"
]
}
],
"commands": [
{
"command": "thirft-formatter.formatThriftFile",
"title": "Format Thrift"
}
],
"configuration": {
"type": "object",
"title": "Thrift Formatter",
"properties": {
"thriftFormatter.patchRequired": {
"type": "boolean",
"scope": "resource",
"default": true,
"description": "auto patch the miss 'required' of field\nsupport field in struct/union/exception "
},
"thriftFormatter.patchSeparator": {
"type": "boolean",
"scope": "resource",
"default": true,
"description": "auto patch the missed or useless separator\nseparator use comma ','"
},
"thriftFormatter.indent": {
"type": "number",
"scope": "resource",
"default": 4,
"description": "indent for field or function in struct enum union exception service"
},
"thriftFormatter.alignByAssign": {
"type": "boolean",
"scope": "resource",
"default": false,
"description": "align by field's assgin '=' \nsupport field in the struct enum union exception"
},
"thriftFormatter.alignByField": {
"type": "boolean",
"scope": "resource",
"default": false,
"description": "align by each part of field. if true, this will ingore 'Align By Assign' option\nsupport field in struct enum union exception"
}
}
}
},
"repository": "https://github.com/thrift-labs/thrift-fmt-vscode",
"icon": "icons/thrift-fmt.png",
"publisher": "alingse",
"scripts": {
"test": "vscode-test-web --browserType=chromium --extensionDevelopmentPath=. --extensionTestsPath=dist/web/test/suite/index.js",
"pretest": "npm run compile-web",
"vscode:prepublish": "npm run package-web",
"compile-web": "webpack",
"watch-web": "webpack --watch",
"package-web": "webpack --mode production --devtool hidden-source-map",
"lint": "eslint src --ext ts",
"run-in-browser": "vscode-test-web --browserType=chromium --extensionDevelopmentPath=. ."
},
"devDependencies": {
"@types/mocha": "^9.1.1",
"@types/vscode": "^1.67.0",
"@types/webpack-env": "^1.17.0",
"@vscode/test-web": "^0.0.24",
"assert": "^2.0.0",
"mocha": "^10.0.0",
"process": "^0.11.10",
"ts-loader": "^9.3.0",
"typescript": "^4.7.2",
"webpack": "^5.72.1",
"webpack-cli": "^4.9.2"
},
"dependencies": {
"thrift-fmt-ts": "^1.3.0"
}
}