-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
186 lines (186 loc) · 4.82 KB
/
Copy pathpackage.json
File metadata and controls
186 lines (186 loc) · 4.82 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
{
"name": "simulink-data-explorer",
"displayName": "Simulink Data Explorer",
"description": "Explore Simulink models, data dictionaries, MAT-files, and projects as interactive tables and relationship trees.",
"version": "1.2.9",
"publisher": "mathworks",
"icon": "media/icon.png",
"private": true,
"license": "BSD-3-Clause",
"repository": {
"type": "git",
"url": "https://github.com/mathworks/data-explorer-vscode.git"
},
"engines": {
"vscode": "^1.90.0"
},
"categories": [
"Visualization",
"Data Science"
],
"keywords": [
"simulink",
"slx",
"sldd",
"matlab",
"data dictionary"
],
"main": "./dist/extension.js",
"browser": "./dist/web/extension.js",
"contributes": {
"customEditors": [
{
"viewType": "dataExplorer.binaryView",
"displayName": "Data Explorer",
"selector": [
{
"filenamePattern": "*.sldd"
},
{
"filenamePattern": "*.mat"
},
{
"filenamePattern": "*.slx"
},
{
"filenamePattern": "*.prj"
}
],
"priority": "default"
},
{
"viewType": "dataExplorer.tableView",
"displayName": "Data Explorer (editable)",
"selector": [
{
"filenamePattern": "*.sldd"
}
],
"priority": "option"
}
],
"languages": [
{
"id": "json",
"extensions": [
".sldd"
]
}
],
"viewsContainers": {
"activitybar": [
{
"id": "dataExplorer",
"title": "Simulink Data Explorer",
"icon": "media/dataexplorer.svg"
},
{
"id": "dataExplorerProperties",
"title": "Properties",
"icon": "media/properties.svg"
}
]
},
"views": {
"dataExplorer": [
{
"id": "dataExplorer.sections",
"name": "Simulink Data Explorer",
"type": "tree"
}
],
"dataExplorerProperties": [
{
"id": "dataExplorer.properties",
"name": "Properties",
"type": "webview"
}
]
},
"commands": [
{
"command": "dataExplorer.openFile",
"title": "Open in Data Explorer",
"category": "Data Explorer"
},
{
"command": "dataExplorer.showProperties",
"title": "Data Explorer: Show Properties"
},
{
"command": "dataExplorer.viewAsText",
"title": "View as Text",
"category": "Data Explorer",
"icon": "$(json)"
},
{
"command": "dataExplorer.viewAsTable",
"title": "View as Table",
"category": "Data Explorer",
"icon": "$(table)"
}
],
"menus": {
"editor/title": [
{
"command": "dataExplorer.viewAsText",
"when": "activeCustomEditorId == dataExplorer.tableView",
"group": "navigation@1"
},
{
"command": "dataExplorer.viewAsTable",
"when": "!activeCustomEditorId && resourceExtname == .sldd",
"group": "navigation@1"
}
],
"commandPalette": [
{
"command": "dataExplorer.viewAsText",
"when": "resourceExtname == .sldd && activeCustomEditorId == dataExplorer.tableView"
},
{
"command": "dataExplorer.viewAsTable",
"when": "resourceExtname == .sldd"
}
]
}
},
"scripts": {
"build:webview": "vite build",
"build:host": "node esbuild.mjs",
"build:web": "node esbuild.mjs --web",
"copy:icons": "node -e \"const fs=require('fs');fs.mkdirSync('dist/webview/icons',{recursive:true});for(const f of fs.readdirSync('media/icons'))fs.copyFileSync('media/icons/'+f,'dist/webview/icons/'+f)\"",
"build": "npm run build:webview && npm run copy:icons && npm run build:host",
"watch:host": "node esbuild.mjs --watch",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:coverage": "vitest run --coverage",
"compile:test": "node esbuild.test.mjs",
"pretest:integration": "npm run build && npm run compile:test",
"test:integration": "vscode-test",
"package": "vsce package"
},
"dependencies": {
"@lit/context": "^1.1.6",
"fast-xml-parser": "^5.8.0",
"fflate": "^0.8.3",
"highlight.js": "^11.11.1",
"lit": "^3.2.0"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "^20.0.0",
"@types/vscode": "^1.90.0",
"@vitest/coverage-v8": "^4.1.10",
"@vscode/test-cli": "^0.0.15",
"@vscode/test-electron": "^3.0.0",
"@vscode/test-web": "^0.0.81",
"@vscode/vsce": "^3.0.0",
"esbuild": "^0.24.0",
"happy-dom": "^20.9.0",
"mocha": "^11.7.6",
"typescript": "^5.7.0",
"vite": "^6.0.0",
"vitest": "^4.1.7"
}
}