|
8 | 8 | "type": "git", |
9 | 9 | "url": "https://github.com/jonaraphael/csv.git" |
10 | 10 | }, |
11 | | - "version": "1.1.0", |
| 11 | + "version": "1.1.1", |
12 | 12 | "engines": { |
13 | | - "vscode": "^1.93.0", |
| 13 | + "vscode": "^1.100.0", |
14 | 14 | "node": ">=14" |
15 | 15 | }, |
16 | 16 | "categories": [ |
|
23 | 23 | "onCommand:csv.toggleExtension", |
24 | 24 | "onCommand:csv.toggleHeader", |
25 | 25 | "onCommand:csv.toggleSerialIndex", |
26 | | - "onCommand:csv.changeSeparator" |
| 26 | + "onCommand:csv.changeSeparator", |
| 27 | + "onCommand:csv.changeFontFamily" |
27 | 28 | ], |
28 | 29 | "main": "./out/extension.js", |
29 | 30 | "contributes": { |
30 | 31 | "languages": [ |
31 | 32 | { |
32 | 33 | "id": "csv", |
33 | | - "extensions": [ |
34 | | - ".csv" |
35 | | - ], |
36 | | - "aliases": [ |
37 | | - "CSV", |
38 | | - "csv" |
39 | | - ], |
| 34 | + "extensions": [ ".csv" ], |
| 35 | + "aliases": [ "CSV", "csv" ], |
40 | 36 | "configuration": "./language-configuration.json" |
41 | 37 | } |
42 | 38 | ], |
43 | 39 | "commands": [ |
44 | | - { |
45 | | - "command": "csv.toggleExtension", |
46 | | - "title": "CSV: Toggle Extension On/Off" |
47 | | - }, |
48 | | - { |
49 | | - "command": "csv.toggleHeader", |
50 | | - "title": "CSV: Toggle First Row as Header" |
51 | | - }, |
52 | | - { |
53 | | - "command": "csv.toggleSerialIndex", |
54 | | - "title": "CSV: Toggle Serial Index Column" |
55 | | - }, |
56 | | - { |
57 | | - "command": "csv.changeSeparator", |
58 | | - "title": "CSV: Change CSV Separator" |
59 | | - }, |
60 | | - { |
61 | | - "command": "csv.changeFontFamily", |
62 | | - "title": "CSV: Change Font Family" |
63 | | - } |
| 40 | + { "command": "csv.toggleExtension", "title": "CSV: Toggle Extension On/Off" }, |
| 41 | + { "command": "csv.toggleHeader", "title": "CSV: Toggle First Row as Header" }, |
| 42 | + { "command": "csv.toggleSerialIndex", "title": "CSV: Toggle Serial Index Column" }, |
| 43 | + { "command": "csv.changeSeparator", "title": "CSV: Change CSV Separator" }, |
| 44 | + { "command": "csv.changeFontFamily", "title": "CSV: Change Font Family" } |
64 | 45 | ], |
| 46 | + |
65 | 47 | "configuration": { |
66 | 48 | "type": "object", |
67 | 49 | "title": "CSV Extension Configuration", |
|
86 | 68 | "default": ",", |
87 | 69 | "description": "CSV separator to use." |
88 | 70 | }, |
| 71 | + |
89 | 72 | "csv.fontFamily": { |
90 | 73 | "type": "string", |
91 | | - "default": "Menlo", |
92 | | - "description": "CSV Font Family to use." |
| 74 | + "default": "", |
| 75 | + "description": "Font family used by the CSV custom editor. Leave empty to inherit ‘editor.fontFamily’.", |
| 76 | + "scope": "application" |
93 | 77 | }, |
| 78 | + |
94 | 79 | "csv.cellPadding": { |
95 | 80 | "type": "number", |
96 | 81 | "default": 4, |
97 | 82 | "description": "Vertical padding in pixels for table cells." |
98 | 83 | } |
99 | 84 | } |
100 | 85 | }, |
| 86 | + |
101 | 87 | "customEditors": [ |
102 | 88 | { |
103 | 89 | "viewType": "csv.editor", |
104 | 90 | "displayName": "CSV", |
105 | | - "selector": [ |
106 | | - { |
107 | | - "filenamePattern": "*.csv" |
108 | | - } |
109 | | - ] |
| 91 | + "selector": [ { "filenamePattern": "*.csv" } ] |
110 | 92 | } |
111 | | - ], |
112 | | - "csv.fontFamily": { |
113 | | - "type": "string", |
114 | | - "default": "", |
115 | | - "description": "Font family used by the CSV custom editor. Leave empty to inherit ‘editor.fontFamily’.", |
116 | | - "scope": "application" |
117 | | - } |
| 93 | + ] |
118 | 94 | }, |
| 95 | + |
119 | 96 | "scripts": { |
120 | 97 | "compile": "tsc -p ./", |
121 | 98 | "lint": "eslint '**/*.ts'", |
|
124 | 101 | }, |
125 | 102 | "dependencies": { |
126 | 103 | "font-list": "^1.5.1", |
127 | | - "papaparse": "^5.5.3", |
128 | | - "vscode": "^1.1.37" |
| 104 | + "papaparse": "^5.5.3" |
129 | 105 | }, |
130 | 106 | "devDependencies": { |
131 | 107 | "@types/mocha": "^10.0.10", |
|
0 commit comments