Skip to content

Commit 23e8a8b

Browse files
authored
Remove old toit.io support in vscode extension. (#259)
1 parent 44203fc commit 23e8a8b

26 files changed

+4
-1489
lines changed

.github/workflows/vscode.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,12 @@ jobs:
3535
working-directory: ${{ env.vscode-dir }}
3636
run: |
3737
yarn install
38-
sudo apt-get update
39-
sudo apt-get install xvfb
4038
4139
- name: Lint
4240
working-directory: ${{ env.vscode-dir }}
4341
run: |
4442
yarn run lint
4543
46-
- name: Test
47-
working-directory: ${{ env.vscode-dir }}
48-
env:
49-
DISPLAY: ":99.0"
50-
run: |
51-
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
52-
yarn run ci-test
53-
5444
- name: Configure Git identity
5545
run: |
5646
git config --global user.email "leon@toit.io"

vscode/package.json

Lines changed: 2 additions & 151 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@
1717
"url": "https://github.com/toitware/ide-tools.git"
1818
},
1919
"activationEvents": [
20-
"workspaceContains:**/*.toit",
21-
"onView:toitView",
22-
"onCommand:toit.refreshView"
23-
],
20+
"workspaceContains:**/*.toit"
21+
],
2422
"icon": "images/toitware_logo.png",
2523
"main": "./dist/extension.js",
2624
"contributes": {
@@ -32,101 +30,7 @@
3230
"editor.wordSeparators": "`~!@#$%^&*()=+[{]}\\|;:'\",.<>/?"
3331
}
3432
},
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-
],
6733
"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-
},
13034
{
13135
"command": "jag.watch",
13236
"title": "Watch for changes and rerun",
@@ -163,58 +67,6 @@
16367
"enablement": "jag.execPresent"
16468
}
16569
],
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-
},
21870
"languages": [
21971
{
22072
"id": "toit",
@@ -308,7 +160,6 @@
308160
"watch": "webpack --mode development --watch",
309161
"test-watch": "tsc -p ./ -watch",
310162
"test-compile": "tsc -p ./",
311-
"ci-test": "tsc -p ./ && ts-node ./test/runTest.ts",
312163
"lint": "eslint src --ext ts",
313164
"lint-fix": "eslint src --ext ts --fix",
314165
"package": "vsce package --yarn",

vscode/src/app.ts

Lines changed: 0 additions & 73 deletions
This file was deleted.

vscode/src/cli.ts

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)