-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathpackage.json
More file actions
256 lines (256 loc) · 7.4 KB
/
package.json
File metadata and controls
256 lines (256 loc) · 7.4 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
254
255
256
{
"name": "csv",
"displayName": "CSV",
"publisher": "ReprEng",
"description": "Seamlessly Display and Edit CSVs",
"icon": "images/icon.jpg",
"repository": {
"type": "git",
"url": "https://github.com/jonaraphael/csv.git"
},
"version": "1.3.0",
"engines": {
"vscode": "^1.70.0",
"node": ">=14"
},
"categories": [
"Data Science",
"Programming Languages",
"Other"
],
"activationEvents": [
"onLanguage:csv",
"onLanguage:tsv",
"onCommand:csv.toggleExtension",
"onCommand:csv.toggleHeader",
"onCommand:csv.toggleSerialIndex",
"onCommand:csv.changeSeparator",
"onCommand:csv.resetSeparator",
"onCommand:csv.changeFontFamily",
"onCommand:csv.changeIgnoreRows",
"onCommand:csv.changeEncoding",
"onCommand:csv.toggleClickableLinks"
],
"main": "./out/extension.js",
"contributes": {
"languages": [
{
"id": "csv",
"extensions": [
".csv",
".psv"
],
"aliases": [
"CSV",
"csv",
"PSV",
"psv"
],
"configuration": "./language-configuration.json"
},
{
"id": "tsv",
"extensions": [
".tsv",
".tab"
],
"aliases": [
"TSV",
"tsv",
"TAB",
"tab"
],
"configuration": "./language-configuration.json"
}
],
"commands": [
{
"command": "csv.toggleExtension",
"title": "CSV: Toggle Extension On/Off"
},
{
"command": "csv.toggleHeader",
"title": "CSV: Toggle First Row as Header"
},
{
"command": "csv.toggleSerialIndex",
"title": "CSV: Toggle Serial Index Column"
},
{
"command": "csv.changeSeparator",
"title": "CSV: Change CSV Separator"
},
{
"command": "csv.resetSeparator",
"title": "CSV: Reset CSV Separator (Inherit)"
},
{
"command": "csv.changeFontFamily",
"title": "CSV: Change Font Family"
},
{
"command": "csv.changeIgnoreRows",
"title": "CSV: Hide First N Rows"
},
{
"command": "csv.changeEncoding",
"title": "CSV: Change File Encoding"
},
{
"command": "csv.toggleClickableLinks",
"title": "CSV: Toggle Clickable Links"
}
],
"configuration": {
"type": "object",
"title": "CSV Extension Configuration",
"properties": {
"csv.enabled": {
"type": "boolean",
"default": true,
"description": "Enable/Disable the CSV custom editor."
},
"csv.fontFamily": {
"type": "string",
"default": "",
"description": "Font family used by the CSV custom editor. Leave empty to inherit ‘editor.fontFamily’.",
"scope": "application"
},
"csv.fontSize": {
"type": "number",
"default": 0,
"minimum": 0,
"description": "Font size in pixels for the CSV custom editor. Set to 0 to inherit 'editor.fontSize'.",
"scope": "application"
},
"csv.mouseWheelZoom": {
"type": "boolean",
"default": true,
"description": "Enable Ctrl/Cmd + mouse wheel zoom in the CSV editor.",
"scope": "application"
},
"csv.mouseWheelZoomInvert": {
"type": "boolean",
"default": false,
"description": "Invert the Ctrl/Cmd + mouse wheel zoom direction in the CSV editor.",
"scope": "application"
},
"csv.cellPadding": {
"type": "number",
"default": 4,
"description": "Vertical padding in pixels for table cells."
},
"csv.columnColorMode": {
"type": "string",
"enum": [
"type",
"theme"
],
"default": "type",
"description": "Column text color mode. 'type' uses CSV's type-based colors. 'theme' uses the current theme foreground color for all columns."
},
"csv.columnColorPalette": {
"type": "string",
"enum": [
"default",
"cool",
"warm"
],
"default": "default",
"description": "Type-color palette when csv.columnColorMode is 'type'. 'default' keeps the original palette, 'cool' biases colors toward greens/blues, and 'warm' biases colors toward oranges/reds."
},
"csv.diffUseThemeForeground": {
"type": "boolean",
"default": true,
"description": "When CSV is opened in a diff/compare view, use the current theme foreground color for cell text so diff highlighting stays visible."
},
"csv.clickableLinks": {
"type": "boolean",
"default": true,
"description": "Make URLs in cells clickable. Ctrl/Cmd+click to open links."
},
"csv.showTrailingEmptyRow": {
"type": "boolean",
"default": true,
"description": "Show an extra empty row at the end of the table for quick append-style editing."
},
"csv.separatorMode": {
"type": "string",
"enum": [
"extension",
"auto",
"default"
],
"default": "extension",
"description": "How CSV chooses the separator when no per-file override exists. 'extension' uses extension mapping, 'auto' attempts detection from file content first, and 'default' always uses csv.defaultSeparator."
},
"csv.defaultSeparator": {
"type": "string",
"default": ",",
"description": "Fallback separator used by separator modes. Use '\\t' for tab in settings JSON."
},
"csv.separatorByExtension": {
"type": "object",
"default": {
".csv": ",",
".tsv": "\t",
".tab": "\t",
".psv": "|"
},
"additionalProperties": {
"type": "string"
},
"description": "Separator mapping by file extension. Keys may be '.ext' or 'ext'. Values are separator strings."
},
"csv.maxFileSizeMB": {
"type": "number",
"default": 10,
"minimum": 0,
"description": "Soft max size in MB for opening files in CSV view. 0 disables the limit. When exceeded, CSV prompts to cancel, continue this time, or disable the limit."
}
}
},
"customEditors": [
{
"viewType": "csv.editor",
"displayName": "CSV",
"selector": [
{
"filenamePattern": "*.csv"
},
{
"filenamePattern": "*.tsv"
},
{
"filenamePattern": "*.tab"
},
{
"filenamePattern": "*.psv"
}
]
}
]
},
"scripts": {
"compile": "tsc -p ./",
"vscode:prepublish": "npm run compile",
"lint": "eslint '**/*.ts'",
"package": "vsce package",
"test": "npm run compile && node --test out/test"
},
"dependencies": {
"font-list": "^1.5.1",
"papaparse": "^5.5.3"
},
"devDependencies": {
"@types/node": "^20.11.19",
"@types/papaparse": "^5.3.16",
"@types/vscode": "^1.70.0",
"@typescript-eslint/eslint-plugin": "^7.9.0",
"@typescript-eslint/parser": "^7.9.0",
"@vscode/vsce": "^3.7.1",
"eslint": "^8.57.0",
"typescript": "^4.4.3",
"vscode": "^1.1.37"
}
}