|
17 | 17 | "url": "https://github.com/toitware/ide-tools.git" |
18 | 18 | }, |
19 | 19 | "activationEvents": [ |
20 | | - "workspaceContains:**/*.toit", |
21 | | - "onView:toitView", |
22 | | - "onCommand:toit.refreshView" |
23 | | - ], |
| 20 | + "workspaceContains:**/*.toit" |
| 21 | + ], |
24 | 22 | "icon": "images/toitware_logo.png", |
25 | 23 | "main": "./dist/extension.js", |
26 | 24 | "contributes": { |
|
32 | 30 | "editor.wordSeparators": "`~!@#$%^&*()=+[{]}\\|;:'\",.<>/?" |
33 | 31 | } |
34 | 32 | }, |
35 | | - "viewsContainers": { |
36 | | - "activitybar": [ |
37 | | - { |
38 | | - "id": "toitView", |
39 | | - "title": "Toit", |
40 | | - "icon": "./resources/logo.svg", |
41 | | - "when": "toit.extensionActive" |
42 | | - } |
43 | | - ] |
44 | | - }, |
45 | | - "views": { |
46 | | - "toitView": [ |
47 | | - { |
48 | | - "id": "toitDeviceView", |
49 | | - "name": "Devices", |
50 | | - "when": "toit.extensionActive" |
51 | | - }, |
52 | | - { |
53 | | - "id": "toitSerialView", |
54 | | - "name": "Serial Ports", |
55 | | - "when": "toit.extensionActive", |
56 | | - "visibility": "collapsed" |
57 | | - } |
58 | | - ] |
59 | | - }, |
60 | | - "viewsWelcome": [ |
61 | | - { |
62 | | - "view": "toitDeviceView", |
63 | | - "contents": "No devices found.\n\nTry to log in\n[Log in](command:toit.ensureAuth)", |
64 | | - "when": "toit.extensionActive" |
65 | | - } |
66 | | - ], |
67 | 33 | "commands": [ |
68 | | - { |
69 | | - "command": "toit.uninstallApp", |
70 | | - "title": "Uninstall", |
71 | | - "category": "Toit", |
72 | | - "icon": "$(trash)", |
73 | | - "enablement": "toit.extensionActive" |
74 | | - }, |
75 | | - { |
76 | | - "command": "toit.refreshDeviceView", |
77 | | - "title": "Refresh", |
78 | | - "category": "Toit", |
79 | | - "icon": "$(refresh)", |
80 | | - "enablement": "toit.extensionActive" |
81 | | - }, |
82 | | - { |
83 | | - "command": "toit.refreshSerialView", |
84 | | - "title": "Refresh", |
85 | | - "category": "Toit", |
86 | | - "icon": "$(refresh)", |
87 | | - "enablement": "toit.extensionActive" |
88 | | - }, |
89 | | - { |
90 | | - "command": "toit.ensureAuth", |
91 | | - "title": "Log in to toit.io", |
92 | | - "category": "Toit", |
93 | | - "enablement": "toit.extensionActive" |
94 | | - }, |
95 | | - { |
96 | | - "command": "toit.devRun", |
97 | | - "title": "Run", |
98 | | - "category": "Toit", |
99 | | - "icon": "$(run)", |
100 | | - "enablement": "toit.extensionActive" |
101 | | - }, |
102 | | - { |
103 | | - "command": "toit.devDeploy", |
104 | | - "title": "Deploy", |
105 | | - "category": "Toit", |
106 | | - "icon": "$(run-all)", |
107 | | - "enablement": "toit.extensionActive" |
108 | | - }, |
109 | | - { |
110 | | - "command": "toit.devLogs", |
111 | | - "title": "Logs", |
112 | | - "category": "Toit", |
113 | | - "icon": "$(output)", |
114 | | - "enablement": "toit.extensionActive" |
115 | | - }, |
116 | | - { |
117 | | - "command": "toit.serialProvision", |
118 | | - "title": "Provision device", |
119 | | - "category": "Toit", |
120 | | - "icon": "$(add)", |
121 | | - "enablement": "toit.extensionActive" |
122 | | - }, |
123 | | - { |
124 | | - "command": "toit.serialMonitor", |
125 | | - "title": "Monitor serial output", |
126 | | - "category": "Toit", |
127 | | - "icon": "$(selection)", |
128 | | - "enablement": "toit.extensionActive" |
129 | | - }, |
130 | 34 | { |
131 | 35 | "command": "jag.watch", |
132 | 36 | "title": "Watch for changes and rerun", |
|
163 | 67 | "enablement": "jag.execPresent" |
164 | 68 | } |
165 | 69 | ], |
166 | | - "menus": { |
167 | | - "view/title": [ |
168 | | - { |
169 | | - "command": "toit.refreshDeviceView", |
170 | | - "when": "view == toitDeviceView", |
171 | | - "group": "navigation@1" |
172 | | - }, |
173 | | - { |
174 | | - "command": "toit.refreshSerialView", |
175 | | - "when": "view == toitSerialView", |
176 | | - "group": "navigation@1" |
177 | | - } |
178 | | - ], |
179 | | - "view/item/context": [ |
180 | | - { |
181 | | - "command": "toit.serialProvision", |
182 | | - "when": "view == toitSerialView && viewItem == serial-port", |
183 | | - "group": "inline@0" |
184 | | - }, |
185 | | - { |
186 | | - "command": "toit.serialMonitor", |
187 | | - "when": "view == toitSerialView && viewItem == serial-port", |
188 | | - "group": "inline@1" |
189 | | - }, |
190 | | - { |
191 | | - "command": "toit.uninstallApp", |
192 | | - "when": "view == toitDeviceView && viewItem == application", |
193 | | - "group": "inline" |
194 | | - }, |
195 | | - { |
196 | | - "command": "toit.devRun", |
197 | | - "when": "view == toitDeviceView && viewItem =~ /device.*/", |
198 | | - "group": "inline@2" |
199 | | - }, |
200 | | - { |
201 | | - "command": "toit.devDeploy", |
202 | | - "when": "view == toitDeviceView && viewItem =~ /device.*/", |
203 | | - "group": "inline@1" |
204 | | - }, |
205 | | - { |
206 | | - "command": "toit.devLogs", |
207 | | - "when": "view == toitDeviceView && viewItem =~ /device.*/", |
208 | | - "group": "inline@0" |
209 | | - } |
210 | | - ], |
211 | | - "commandPalette": [ |
212 | | - { |
213 | | - "command": "toit.uninstallApp", |
214 | | - "when": "false" |
215 | | - } |
216 | | - ] |
217 | | - }, |
218 | 70 | "languages": [ |
219 | 71 | { |
220 | 72 | "id": "toit", |
|
308 | 160 | "watch": "webpack --mode development --watch", |
309 | 161 | "test-watch": "tsc -p ./ -watch", |
310 | 162 | "test-compile": "tsc -p ./", |
311 | | - "ci-test": "tsc -p ./ && ts-node ./test/runTest.ts", |
312 | 163 | "lint": "eslint src --ext ts", |
313 | 164 | "lint-fix": "eslint src --ext ts --fix", |
314 | 165 | "package": "vsce package --yarn", |
|
0 commit comments