-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
253 lines (253 loc) · 9.24 KB
/
package.json
File metadata and controls
253 lines (253 loc) · 9.24 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
243
244
245
246
247
248
249
250
251
252
253
{
"name": "cat5dev",
"displayName": "CATIA V5 VBA",
"description": "We provide support for CATIA V5 VBA macro development",
"version": "0.3.6",
"repository": {
"type": "git",
"url": "https://github.com/kantoku-code/Cat5Dev.git"
},
"activationEvents": [
"onStartupFinished"
],
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Other"
],
"main": "./out/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "catiaVbaContainer",
"title": "CATIA V5 VBA",
"icon": "resources/catia-icon.svg"
}
]
},
"views": {
"catiaVbaContainer": [
{
"id": "catiaVbaModules",
"name": "Modules"
}
]
},
"menus": {
"view/title": [
{
"command": "cat5dev.pullFromCatia",
"when": "view == catiaVbaModules",
"group": "navigation@1"
},
{
"command": "cat5dev.pushToCatia",
"when": "view == catiaVbaModules",
"group": "navigation@2"
},
{
"command": "cat5dev.selectProject",
"when": "view == catiaVbaModules",
"group": "navigation@3"
},
{
"command": "cat5dev.refreshTree",
"when": "view == catiaVbaModules",
"group": "navigation@4"
},
{
"command": "cat5dev.switchLanguage",
"when": "view == catiaVbaModules",
"group": "navigation@5"
}
],
"view/item/context": [
{
"command": "cat5dev.renameFile",
"when": "view == catiaVbaModules && viewItem == catiaModule",
"group": "1@1"
},
{
"command": "cat5dev.deleteFile",
"when": "view == catiaVbaModules && viewItem == catiaModule",
"group": "1@2"
},
{
"command": "cat5dev.copyPath",
"when": "view == catiaVbaModules && viewItem == catiaModule",
"group": "1@3"
}
]
},
"languages": [
{
"id": "vb",
"extensions": [
".bas_utf",
".cls_utf",
".frm_utf"
]
}
],
"commands": [
{
"command": "cat5dev.pullFromCatia",
"title": "CATIA: Pull VBA Modules",
"icon": "$(cloud-download)"
},
{
"command": "cat5dev.pushToCatia",
"title": "CATIA: Push VBA Modules",
"icon": "$(cloud-upload)"
},
{
"command": "cat5dev.selectProject",
"title": "CATIA: Select Target Project",
"icon": "$(settings-gear)"
},
{
"command": "cat5dev.refreshTree",
"title": "Refresh Modules",
"icon": "$(refresh)"
},
{
"command": "cat5dev.switchLanguage",
"title": "CATIA: Switch Language",
"icon": "$(globe)"
},
{
"command": "cat5dev.renameFile",
"title": "Rename"
},
{
"command": "cat5dev.deleteFile",
"title": "Delete"
},
{
"command": "cat5dev.copyPath",
"title": "Copy Path"
},
{
"command": "cat5dev.init",
"title": "CATIA: Initialize Project (cat5dev.toml)"
}
],
"semanticTokenScopes": [
{
"language": "vb",
"scopes": {
"type": ["entity.name.type", "support.class"],
"variable": ["variable.other"]
}
}
],
"configuration": [
{
"title": "CATIA V5 VBA",
"properties": {
"cat5dev.language": {
"type": "string",
"enum": [
"ja",
"en"
],
"enumDescriptions": [
"日本語",
"English"
],
"default": "ja",
"description": "Language for Cat5Dev extension (日本語 or English)"
},
"cat5dev.formatter.indentSize": {
"type": "number",
"default": 4,
"description": "VBAフォーマッタのインデントサイズ"
},
"cat5dev.formatter.capitalizeKeywords": {
"type": "boolean",
"default": true,
"description": "VBAキーワードを正規ケースに変換する"
},
"cat5dev.formatter.fixIndentation": {
"type": "boolean",
"default": true,
"description": "インデントを自動修正する"
},
"cat5dev.formatter.formatOnSave": {
"type": "boolean",
"default": false,
"description": "保存時に自動フォーマットする"
},
"cat5dev.formatter.formatOnPull": {
"type": "boolean",
"default": false,
"description": "CATIAからPull後に自動フォーマットする"
},
"cat5dev.formatter.trimTrailingSpace": {
"type": "boolean",
"default": true,
"description": "行末の空白を除去する"
},
"cat5dev.formatter.ensureContinuationSpace": {
"type": "boolean",
"default": true,
"description": "継続行マーカー _ の前にスペースを追加する (Show(_ → Show( _)"
},
"cat5dev.formatter.indentContinuationLines": {
"type": "boolean",
"default": true,
"description": "継続行の次の行を +1 インデントする"
},
"cat5dev.formatter.maxBlankLines": {
"type": "number",
"default": 2,
"description": "連続する空行の最大数 (0=無効)"
},
"cat5dev.formatter.normalizeOperatorSpacing": {
"type": "boolean",
"default": false,
"description": "演算子前後のスペースを統一する (x=1+2 → x = 1 + 2)"
},
"cat5dev.formatter.normalizeCommaSpacing": {
"type": "boolean",
"default": false,
"description": "コンマ後のスペースを統一する (foo(a,b) → foo(a, b))"
},
"cat5dev.formatter.normalizeCommentSpace": {
"type": "boolean",
"default": false,
"description": "コメント記号後にスペースを追加する ('comment → ' comment)"
},
"cat5dev.formatter.expandTypeSuffixes": {
"type": "boolean",
"default": false,
"description": "型接尾辞を展開する (Dim x% → Dim x As Integer)"
}
}
}
]
},
"scripts": {
"compile:go": "cd tools/vbafmt && go build -ldflags=\"-s -w\" -o ../../bin/vbafmt.exe . && cd ../vba-ls && go build -ldflags=\"-s -w\" -o ../../bin/vba-ls.exe .",
"vscode:prepublish": "npm run compile:go && npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts"
},
"devDependencies": {
"@types/node": "18.x",
"@types/vscode": "^1.85.0",
"@typescript-eslint/eslint-plugin": "^6.13.1",
"@typescript-eslint/parser": "^6.13.1",
"eslint": "^8.54.0",
"typescript": "^5.3.3"
},
"dependencies": {
"@types/iconv-lite": "^0.0.1",
"iconv-lite": "^0.6.3",
"vscode-languageclient": "^9.0.1"
}
}