Skip to content

Commit 112153f

Browse files
authored
Update Theia to 1.22.1 (#791)
1 parent 69ac1f4 commit 112153f

36 files changed

+727
-1411
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ jobs:
3333
- name: Checkout
3434
uses: actions/checkout@v2
3535

36-
- name: Install Node.js 12.x
36+
- name: Install Node.js 14.x
3737
uses: actions/setup-node@v1
3838
with:
39-
node-version: '12.14.1'
39+
node-version: '14.x'
4040
registry-url: 'https://registry.npmjs.org'
4141

42-
- name: Install Python 2.7
42+
- name: Install Python 3.x
4343
uses: actions/setup-python@v2
4444
with:
45-
python-version: '2.7'
45+
python-version: '3.x'
4646

4747
- name: Package
4848
shell: bash

.github/workflows/check-i18n-task.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525
- name: Checkout repository
2626
uses: actions/checkout@v2
2727

28-
- name: Install Node.js 12.x
28+
- name: Install Node.js 14.x
2929
uses: actions/setup-node@v2
3030
with:
31-
node-version: '12.14.1'
31+
node-version: '14.x'
3232
registry-url: 'https://registry.npmjs.org'
3333

3434
- name: Install dependencies

.github/workflows/i18n-nightly-push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
- name: Checkout
1313
uses: actions/checkout@v2
1414

15-
- name: Install Node.js 12.x
15+
- name: Install Node.js 14.x
1616
uses: actions/setup-node@v2
1717
with:
18-
node-version: '12.14.1'
18+
node-version: '14.x'
1919
registry-url: 'https://registry.npmjs.org'
2020

2121
- name: Install dependencies

.github/workflows/i18n-weekly-pull.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
- name: Checkout
1313
uses: actions/checkout@v2
1414

15-
- name: Install Node.js 12.x
15+
- name: Install Node.js 14.x
1616
uses: actions/setup-node@v2
1717
with:
18-
node-version: '12.14.1'
18+
node-version: '14.x'
1919
registry-url: 'https://registry.npmjs.org'
2020

2121
- name: Install dependencies

.vscode/launch.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@
3737
"internalConsoleOptions": "openOnSessionStart",
3838
"outputCapture": "std"
3939
},
40+
{
41+
"type": "chrome",
42+
"request": "attach",
43+
"name": "Attach to Electron Frontend",
44+
"port": 9222,
45+
"webRoot": "${workspaceFolder}/electron-app"
46+
},
4047
{
4148
"type": "node",
4249
"request": "launch",
@@ -104,5 +111,14 @@
104111
"program": "${workspaceRoot}/electron/packager/index.js",
105112
"cwd": "${workspaceFolder}/electron/packager"
106113
}
114+
],
115+
"compounds": [
116+
{
117+
"name": "Launch Electron Backend & Frontend",
118+
"configurations": [
119+
"App (Electron)",
120+
"Attach to Electron Frontend"
121+
]
122+
}
107123
]
108124
}

BUILDING.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ The _frontend_ is running as an Electron renderer process and can invoke service
4242
If you’re familiar with TypeScript, the [Theia IDE](https://theia-ide.org/), and if you want to contribute to the
4343
project, you should be able to build the Arduino IDE locally.
4444
Please refer to the [Theia IDE prerequisites](https://github.com/theia-ide/theia/blob/master/doc/) documentation for the setup instructions.
45+
> **Note**: Node.js 14 must be used instead of the version 12 recommended at the link above.
4546
4647
Once you have all the tools installed, you can build the editor following these steps
4748

@@ -57,9 +58,7 @@ Once you have all the tools installed, you can build the editor following these
5758

5859
3. Rebuild the electron dependencies
5960
```sh
60-
cd electron-app
61-
yarn theia rebuild:electron
62-
cd ..
61+
yarn rebuild:electron
6362
```
6463

6564
4. Start the application

arduino-ide-extension/package.json

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,23 @@
2121
},
2222
"dependencies": {
2323
"@grpc/grpc-js": "^1.3.7",
24-
"@theia/application-package": "1.19.0",
25-
"@theia/core": "1.19.0",
26-
"@theia/editor": "1.19.0",
27-
"@theia/editor-preview": "1.19.0",
28-
"@theia/filesystem": "1.19.0",
29-
"@theia/git": "1.19.0",
30-
"@theia/keymaps": "1.19.0",
31-
"@theia/markers": "1.19.0",
32-
"@theia/monaco": "1.19.0",
33-
"@theia/navigator": "1.19.0",
34-
"@theia/outline-view": "1.19.0",
35-
"@theia/output": "1.19.0",
36-
"@theia/preferences": "1.19.0",
37-
"@theia/search-in-workspace": "1.19.0",
38-
"@theia/terminal": "1.19.0",
39-
"@theia/workspace": "1.19.0",
24+
"@theia/application-package": "1.22.1",
25+
"@theia/core": "1.22.1",
26+
"@theia/editor": "1.22.1",
27+
"@theia/editor-preview": "1.22.1",
28+
"@theia/electron": "1.22.1",
29+
"@theia/filesystem": "1.22.1",
30+
"@theia/git": "1.22.1",
31+
"@theia/keymaps": "1.22.1",
32+
"@theia/markers": "1.22.1",
33+
"@theia/monaco": "1.22.1",
34+
"@theia/navigator": "1.22.1",
35+
"@theia/outline-view": "1.22.1",
36+
"@theia/output": "1.22.1",
37+
"@theia/preferences": "1.22.1",
38+
"@theia/search-in-workspace": "1.22.1",
39+
"@theia/terminal": "1.22.1",
40+
"@theia/workspace": "1.22.1",
4041
"@tippyjs/react": "^4.2.5",
4142
"@types/atob": "^2.1.2",
4243
"@types/auth0-js": "^9.14.0",

arduino-ide-extension/src/browser/arduino-frontend-contribution.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { inject, injectable, postConstruct } from 'inversify';
22
import * as React from 'react';
3-
import { remote } from 'electron';
3+
import * as remote from '@theia/core/electron-shared/@electron/remote';
44
import {
55
BoardsService,
66
SketchesService,

arduino-ide-extension/src/browser/contributions/about.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { inject, injectable } from 'inversify';
22
import * as moment from 'moment';
3-
import { remote } from 'electron';
3+
import * as remote from '@theia/core/electron-shared/@electron/remote';
44
import { isOSX, isWindows } from '@theia/core/lib/common/os';
55
import { ClipboardService } from '@theia/core/lib/browser/clipboard-service';
66
import { FrontendApplicationConfigProvider } from '@theia/core/lib/browser/frontend-application-config-provider';

arduino-ide-extension/src/browser/contributions/add-file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { inject, injectable } from 'inversify';
2-
import { remote } from 'electron';
2+
import * as remote from '@theia/core/electron-shared/@electron/remote';
33
import { ArduinoMenus } from '../menu/arduino-menus';
44
import {
55
SketchContribution,

0 commit comments

Comments
 (0)