Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 090098d

Browse filesBrowse files
authored
Merge e8a9ef7 into e17472e
2 parents e17472e + e8a9ef7 commit 090098d
Copy full SHA for 090098d

File tree

131 files changed

+4678
-8036
lines changed
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner

131 files changed

+4678
-8036
lines changed

‎.eslintrc.js

Copy file name to clipboardExpand all lines: .eslintrc.js
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ module.exports = {
1515
'.browser_modules/*',
1616
'docs/*',
1717
'scripts/*',
18-
'electron-app/*',
18+
'electron-app/lib/*',
19+
'electron-app/src-gen/*',
20+
'electron-app/gen-webpack*.js',
1921
'!electron-app/webpack.config.js',
2022
'plugins/*',
2123
'arduino-ide-extension/src/node/cli-protocol',

‎.github/workflows/build.yml

Copy file name to clipboardExpand all lines: .github/workflows/build.yml
+13-3Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ jobs:
9292
with:
9393
node-version: '16.14'
9494
registry-url: 'https://registry.npmjs.org'
95+
cache: 'yarn'
9596

9697
- name: Install Python 3.x
9798
uses: actions/setup-python@v4
@@ -135,15 +136,24 @@ jobs:
135136
if [ "${{ runner.OS }}" = "Windows" ]; then
136137
npm config set msvs_version 2017 --global
137138
fi
139+
138140
npx node-gyp install
139-
yarn --cwd ./electron/packager/
140-
yarn --cwd ./electron/packager/ package
141+
yarn install --immutable
142+
143+
yarn --cwd arduino-ide-extension build
144+
yarn test
145+
yarn --cwd arduino-ide-extension test:slow
146+
yarn --cwd arduino-ide-extension lint
147+
148+
yarn --cwd electron-app rebuild
149+
yarn --cwd electron-app build
150+
yarn --cwd electron-app package
141151
142152
- name: Upload [GitHub Actions]
143153
uses: actions/upload-artifact@v3
144154
with:
145155
name: ${{ env.JOB_TRANSFER_ARTIFACT }}
146-
path: electron/build/dist/build-artifacts/
156+
path: electron-app/dist/build-artifacts
147157

148158
artifacts:
149159
name: ${{ matrix.artifact.name }} artifact

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

Copy file name to clipboardExpand all lines: .github/workflows/check-i18n-task.yml
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
with:
6464
node-version: '16.14'
6565
registry-url: 'https://registry.npmjs.org'
66+
cache: 'yarn'
6667

6768
- name: Install Go
6869
uses: actions/setup-go@v4
@@ -76,7 +77,7 @@ jobs:
7677
version: 3.x
7778

7879
- name: Install dependencies
79-
run: yarn
80+
run: yarn install --immutable
8081
env:
8182
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8283

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

Copy file name to clipboardExpand all lines: .github/workflows/i18n-nightly-push.yml
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
with:
2222
node-version: '16.14'
2323
registry-url: 'https://registry.npmjs.org'
24+
cache: 'yarn'
2425

2526
- name: Install Go
2627
uses: actions/setup-go@v4
@@ -34,7 +35,7 @@ jobs:
3435
version: 3.x
3536

3637
- name: Install dependencies
37-
run: yarn
38+
run: yarn install --immutable
3839

3940
- name: Run i18n:push script
4041
run: yarn run i18n:push

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

Copy file name to clipboardExpand all lines: .github/workflows/i18n-weekly-pull.yml
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
with:
2222
node-version: '16.14'
2323
registry-url: 'https://registry.npmjs.org'
24+
cache: 'yarn'
2425

2526
- name: Install Go
2627
uses: actions/setup-go@v4
@@ -34,7 +35,7 @@ jobs:
3435
version: 3.x
3536

3637
- name: Install dependencies
37-
run: yarn
38+
run: yarn install --immutable
3839

3940
- name: Run i18n:pull script
4041
run: yarn run i18n:pull

‎.github/workflows/themes-weekly-pull.yml

Copy file name to clipboardExpand all lines: .github/workflows/themes-weekly-pull.yml
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
with:
2424
node-version: ${{ env.NODE_VERSION }}
2525
registry-url: 'https://registry.npmjs.org'
26+
cache: 'yarn'
2627

2728
- name: Install Go
2829
uses: actions/setup-go@v4
@@ -36,7 +37,7 @@ jobs:
3637
version: 3.x
3738

3839
- name: Install dependencies
39-
run: yarn
40+
run: yarn install --immutable
4041

4142
- name: Run themes:pull script
4243
run: yarn run themes:pull

‎.gitignore

Copy file name to clipboard
+5-8Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
11
node_modules/
2-
# .node_modules is a hack for the electron builder.
3-
.node_modules/
42
lib/
53
downloads/
6-
build/
4+
resources/
75
arduino-ide-extension/Examples/
8-
!electron/build/
96
src-gen/
10-
electron/build/webpack.config.js
117
gen-webpack.config.js
8+
gen-webpack.node.config.js
129
.DS_Store
1310
# switching from `electron` to `browser` in dev mode.
1411
.browser_modules
1512
yarn*.log
1613
# For the VS Code extensions used by Theia.
17-
plugins
14+
electron-app/plugins
1815
# the tokens folder for the themes
1916
scripts/themes/tokens
20-
# environment variables
21-
.env
2217
# content trace files for electron
2318
electron-app/traces
2419
# any Arduino LS generated log files
2520
inols*.log
21+
# The electron-builder output.
22+
electron-app/dist

‎.vscode/launch.json

Copy file name to clipboardExpand all lines: .vscode/launch.json
+8-7Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{
55
"type": "node",
66
"request": "launch",
7-
"name": "App (Electron) [Dev]",
7+
"name": "App",
88
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
99
"windows": {
1010
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd",
@@ -17,10 +17,8 @@
1717
"--app-project-path=${workspaceRoot}/electron-app",
1818
"--remote-debugging-port=9222",
1919
"--no-app-auto-install",
20-
"--plugins=local-dir:../plugins",
20+
"--plugins=local-dir:./plugins",
2121
"--hosted-plugin-inspect=9339",
22-
"--content-trace",
23-
"--open-devtools",
2422
"--no-ping-timeout",
2523
],
2624
"env": {
@@ -41,7 +39,7 @@
4139
{
4240
"type": "node",
4341
"request": "launch",
44-
"name": "App (Electron)",
42+
"name": "App [Dev]",
4543
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
4644
"windows": {
4745
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd",
@@ -54,8 +52,10 @@
5452
"--app-project-path=${workspaceRoot}/electron-app",
5553
"--remote-debugging-port=9222",
5654
"--no-app-auto-install",
57-
"--plugins=local-dir:../plugins",
55+
"--plugins=local-dir:./plugins",
5856
"--hosted-plugin-inspect=9339",
57+
"--content-trace",
58+
"--open-devtools",
5959
"--no-ping-timeout",
6060
],
6161
"env": {
@@ -95,7 +95,8 @@
9595
"**/${fileBasenameNoExtension}.js"
9696
],
9797
"env": {
98-
"TS_NODE_PROJECT": "${workspaceRoot}/tsconfig.json"
98+
"TS_NODE_PROJECT": "${workspaceRoot}/tsconfig.json",
99+
"IDE2_TEST": "true"
99100
},
100101
"sourceMaps": true,
101102
"smartStep": true,

‎.vscode/tasks.json

Copy file name to clipboardExpand all lines: .vscode/tasks.json
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"version": "2.0.0",
33
"tasks": [
44
{
5-
"label": "Arduino IDE - Rebuild Electron App",
5+
"label": "Rebuild App",
66
"type": "shell",
77
"command": "yarn rebuild:browser && yarn rebuild:electron",
88
"group": "build",
@@ -13,7 +13,7 @@
1313
}
1414
},
1515
{
16-
"label": "Arduino IDE - Watch IDE Extension",
16+
"label": "Watch Extension",
1717
"type": "shell",
1818
"command": "yarn --cwd ./arduino-ide-extension watch",
1919
"group": "build",
@@ -24,7 +24,7 @@
2424
}
2525
},
2626
{
27-
"label": "Arduino IDE - Watch Electron App",
27+
"label": "Watch App",
2828
"type": "shell",
2929
"command": "yarn --cwd ./electron-app watch",
3030
"group": "build",
@@ -35,11 +35,11 @@
3535
}
3636
},
3737
{
38-
"label": "Arduino IDE - Watch All [Electron]",
38+
"label": "Watch All",
3939
"type": "shell",
4040
"dependsOn": [
41-
"Arduino IDE - Watch IDE Extension",
42-
"Arduino IDE - Watch Electron App"
41+
"Watch Extension",
42+
"Watch App"
4343
]
4444
}
4545
]

‎arduino-ide-extension/package.json

Copy file name to clipboardExpand all lines: arduino-ide-extension/package.json
+37-37Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -4,63 +4,59 @@
44
"description": "An extension for Theia building the Arduino IDE",
55
"license": "AGPL-3.0-or-later",
66
"scripts": {
7-
"prepare": "yarn download-cli && yarn download-fwuploader && yarn download-ls && yarn copy-i18n && yarn clean && yarn download-examples && yarn build && yarn test",
7+
"prepare": "yarn download-cli && yarn download-fwuploader && yarn download-ls && yarn copy-i18n && yarn download-examples",
88
"clean": "rimraf lib",
99
"compose-changelog": "node ./scripts/compose-changelog.js",
1010
"download-cli": "node ./scripts/download-cli.js",
1111
"download-fwuploader": "node ./scripts/download-fwuploader.js",
12-
"copy-i18n": "ncp ../i18n ./build/i18n",
12+
"copy-i18n": "ncp ../i18n ./src/node/resources/i18n",
1313
"download-ls": "node ./scripts/download-ls.js",
1414
"download-examples": "node ./scripts/download-examples.js",
1515
"generate-protocol": "node ./scripts/generate-protocol.js",
1616
"lint": "eslint",
17-
"build": "tsc && ncp ./src/node/cli-protocol/ ./lib/node/cli-protocol/ && yarn lint",
17+
"prebuild": "rimraf lib",
18+
"build": "tsc",
19+
"postbuild": "ncp ./src/node/cli-protocol/ ./lib/node/cli-protocol/",
1820
"watch": "tsc -w",
19-
"test": "mocha \"./lib/test/**/*.test.js\"",
20-
"test:slow": "mocha \"./lib/test/**/*.slow-test.js\" --slow 5000",
21-
"test:watch": "mocha --watch --watch-files lib \"./lib/test/**/*.test.js\""
21+
"test": "cross-env IDE2_TEST=true mocha \"./lib/test/**/*.test.js\"",
22+
"test:slow": "cross-env IDE2_TEST=true mocha \"./lib/test/**/*.slow-test.js\" --slow 5000"
2223
},
2324
"dependencies": {
2425
"@grpc/grpc-js": "^1.8.14",
25-
"@theia/application-package": "1.37.0",
26-
"@theia/core": "1.37.0",
27-
"@theia/debug": "1.37.0",
28-
"@theia/editor": "1.37.0",
29-
"@theia/electron": "1.37.0",
30-
"@theia/filesystem": "1.37.0",
31-
"@theia/keymaps": "1.37.0",
32-
"@theia/markers": "1.37.0",
33-
"@theia/messages": "1.37.0",
34-
"@theia/monaco": "1.37.0",
26+
"@theia/application-package": "1.39.0",
27+
"@theia/core": "1.39.0",
28+
"@theia/debug": "1.39.0",
29+
"@theia/editor": "1.39.0",
30+
"@theia/electron": "1.39.0",
31+
"@theia/filesystem": "1.39.0",
32+
"@theia/keymaps": "1.39.0",
33+
"@theia/markers": "1.39.0",
34+
"@theia/messages": "1.39.0",
35+
"@theia/monaco": "1.39.0",
3536
"@theia/monaco-editor-core": "1.72.3",
36-
"@theia/navigator": "1.37.0",
37-
"@theia/outline-view": "1.37.0",
38-
"@theia/output": "1.37.0",
39-
"@theia/plugin-ext": "1.37.0",
40-
"@theia/preferences": "1.37.0",
41-
"@theia/scm": "1.37.0",
42-
"@theia/search-in-workspace": "1.37.0",
43-
"@theia/terminal": "1.37.0",
44-
"@theia/typehierarchy": "1.37.0",
45-
"@theia/workspace": "1.37.0",
37+
"@theia/navigator": "1.39.0",
38+
"@theia/outline-view": "1.39.0",
39+
"@theia/output": "1.39.0",
40+
"@theia/plugin-ext": "1.39.0",
41+
"@theia/preferences": "1.39.0",
42+
"@theia/scm": "1.39.0",
43+
"@theia/search-in-workspace": "1.39.0",
44+
"@theia/terminal": "1.39.0",
45+
"@theia/typehierarchy": "1.39.0",
46+
"@theia/workspace": "1.39.0",
4647
"@tippyjs/react": "^4.2.5",
4748
"@types/auth0-js": "^9.14.0",
4849
"@types/btoa": "^1.2.3",
4950
"@types/dateformat": "^3.0.1",
50-
"@types/deepmerge": "^2.2.0",
51-
"@types/glob": "^7.2.0",
5251
"@types/google-protobuf": "^3.7.2",
5352
"@types/js-yaml": "^3.12.2",
5453
"@types/jsdom": "^21.1.1",
55-
"@types/keytar": "^4.4.0",
5654
"@types/lodash.debounce": "^4.0.6",
5755
"@types/node-fetch": "^2.5.7",
5856
"@types/p-queue": "^2.3.1",
5957
"@types/ps-tree": "^1.1.0",
6058
"@types/react-tabs": "^2.3.2",
6159
"@types/temp": "^0.8.34",
62-
"@types/which": "^1.3.1",
63-
"@vscode/debugprotocol": "^1.51.0",
6460
"arduino-serial-plotter-webapp": "0.2.0",
6561
"async-mutex": "^0.3.0",
6662
"auth0-js": "^9.14.0",
@@ -70,6 +66,7 @@
7066
"cross-fetch": "^3.1.5",
7167
"dateformat": "^3.0.3",
7268
"deepmerge": "^4.2.2",
69+
"drivelist": "^9.2.4",
7370
"electron-updater": "^4.6.5",
7471
"fast-json-stable-stringify": "^2.1.0",
7572
"fast-safe-stringify": "^2.1.1",
@@ -87,6 +84,7 @@
8784
"lodash.debounce": "^4.0.8",
8885
"minimatch": "^3.1.2",
8986
"node-fetch": "^2.6.1",
87+
"node-log-rotate": "^0.1.5",
9088
"open": "^8.0.6",
9189
"p-debounce": "^2.1.0",
9290
"p-queue": "^2.4.2",
@@ -112,18 +110,20 @@
112110
"@types/chai": "^4.2.7",
113111
"@types/mocha": "^5.2.7",
114112
"@types/react-window": "^1.8.5",
113+
"@xhmikosr/downloader": "^13.0.1",
115114
"chai": "^4.2.0",
115+
"cross-env": "^7.0.3",
116116
"decompress": "^4.2.0",
117117
"decompress-tarbz2": "^4.1.1",
118118
"decompress-targz": "^4.1.1",
119119
"decompress-unzip": "^4.0.1",
120-
"download": "^7.1.0",
121120
"grpc_tools_node_protoc_ts": "^4.1.0",
122121
"mocha": "^7.0.0",
123122
"mockdate": "^3.0.5",
124123
"moment": "^2.24.0",
125124
"ncp": "^2.0.0",
126125
"protoc": "^1.0.4",
126+
"rimraf": "^2.6.1",
127127
"shelljs": "^0.8.3",
128128
"uuid": "^3.2.1",
129129
"yargs": "^11.1.0"
@@ -170,17 +170,17 @@
170170
}
171171
],
172172
"arduino": {
173-
"cli": {
173+
"arduino-cli": {
174174
"version": "0.33.1"
175175
},
176-
"fwuploader": {
176+
"arduino-fwuploader": {
177177
"version": "2.2.2"
178178
},
179+
"arduino-language-server": {
180+
"version": "0.7.4"
181+
},
179182
"clangd": {
180183
"version": "14.0.0"
181-
},
182-
"languageServer": {
183-
"version": "0.7.4"
184184
}
185185
}
186186
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.