-
Notifications
You must be signed in to change notification settings - Fork 35
/
package.json
186 lines (186 loc) · 5.86 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
{
"name": "beancount",
"displayName": "Beancount",
"description": "VSCode extension for Beancount",
"version": "0.13.0",
"publisher": "Lencerf",
"engines": {
"vscode": "^1.84.0"
},
"icon": "images/icon.png",
"repository": {
"type": "git",
"url": "https://github.com/Lencerf/vscode-beancount.git"
},
"bugs": {
"url": "https://github.com/Lencerf/vscode-beancount/issues"
},
"categories": [
"Linters",
"Formatters"
],
"activationEvents": [],
"main": "./dist/extension.js",
"contributes": {
"configuration": {
"title": "Beancount Configuration",
"properties": {
"beancount.separatorColumn": {
"type": "integer",
"default": 50,
"description": "Specify the column of the decimal separator."
},
"beancount.instantAlignment": {
"type": "boolean",
"default": true,
"description": "Set to true to align the amount (like 1.00 BTC) once a decimal point is inserted."
},
"beancount.completePayeeNarration": {
"type": "boolean",
"default": true,
"description": "Controls whether the auto completion list should include payee and narration fields."
},
"beancount.mainBeanFile": {
"type": "string",
"default": "",
"description": "If you are splitting beancount files into multiple files, set this value to either the full path or the relative path to your main bean file so that this extension can get all account information. If it is left blank, the extension will consider the file in the current window as the main file."
},
"beancount.runFavaOnActivate": {
"type": "boolean",
"default": false,
"description": "If it is set to true, fava will run once this extension is activated."
},
"beancount.favaPath": {
"type": "string",
"default": "fava",
"description": "Specify the path of Fava if Fava is not installed in the main Python installation."
},
"beancount.python3Path": {
"type": "string",
"default": "python3",
"description": "Specify the path of Python if beancount is not installed in the main Python installation."
},
"beancount.fixedCJKWidth": {
"type": "boolean",
"default": false,
"description": "Set to true to treat CJK aka East Asian characters as two letters width on alignment."
},
"beancount.inputMethods": {
"type": "array",
"default": [],
"description": "List the input methods for auto-completion of payees and narrations with CJK characters. Currently only `pinyin' is supported. See details: https://github.com/Lencerf/vscode-beancount/blob/master/InputMethods.md"
},
"beancount.flagWarnings": {
"type": "object",
"default": {
"*": null,
"!": 1,
"P": null,
"S": null,
"T": null,
"C": null,
"U": null,
"R": null,
"M": null
},
"description": "Provide a map from flag value (a string) to VS Code severity level, or null to not show a warning for this flag."
},
"beancount.inlayHints": {
"type": "boolean",
"default": true,
"description": "Show value inferred by beancount when the amount is not specified in the last leg of the transaction"
}
}
},
"commands": [
{
"command": "beancount.runFava",
"title": "Run Fava"
}
],
"languages": [
{
"id": "beancount",
"aliases": [
"Beancount",
"beancount"
],
"extensions": [
".beancount",
".bean"
],
"configuration": "./language-configuration.json"
},
{
"id": "beancount-oneline",
"aliases": [
"Beancount (with oneline plugin)",
"beancount with oneline plugin"
],
"extensions": [
".beancount.oneline",
".bean.oneline"
],
"configuration": "./language-configuration.json"
},
{
"id": "beancount-markdown-injection"
}
],
"grammars": [
{
"language": "beancount",
"scopeName": "text.beancount",
"path": "./syntaxes/beancount.tmLanguage"
},
{
"language": "beancount-oneline",
"scopeName": "text.beancount.oneline",
"path": "./syntaxes/beancount-oneline.tmLanguage"
},
{
"language": "beancount-markdown-injection",
"scopeName": "markdown.beancount.codeblock",
"path": "./syntaxes/beancount-markdown-injection.json",
"injectTo": [
"text.html.markdown"
],
"embeddedLanguages": {
"meta.embedded.block.beancount": "beancount"
}
}
],
"snippets": [
{
"language": "beancount",
"path": "./snippets/beancount.json"
}
]
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/vscode": "^1.84.0",
"@types/mocha": "^10.0.3",
"@types/node": "18.x",
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
"eslint": "^8.52.0",
"glob": "^10.3.10",
"mocha": "^10.2.0",
"typescript": "^5.2.2",
"ts-loader": "^9.5.0",
"webpack": "^5.94.0",
"webpack-cli": "^5.1.4",
"@vscode/test-electron": "^2.3.6"
}
}