8000 Merge branch 'main' of https://github.com/neochaos42/arduino-ide · arduino/arduino-ide@34e2355 · GitHub
[go: up one dir, main page]

Skip to content
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 34e2355

Browse files
author
{your_name}
committed
2 parents 5b2ea0e + 1d15e99 commit 34e2355

File tree

127 files changed

+6020
-6386
lines changed

Some content is hidden

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

127 files changed

+6020
-6386
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,12 @@ env:
139139
container: |
140140
null
141141
job-transfer-artifact-suffix: ARM_64bit
142-
mergeable-channel-file: 'false'
142+
mergeable-channel-file: 'true'
143143
artifacts:
144-
- path: '*ARM_64bit.tar.gz'
145-
name: ARM_64bit_tarball
144+
- path: '*Linux_arm64.zip'
145+
name: Linux_arm64_zip
146+
- path: '*Linux_arm64.AppImage'
147+
name: Linux_arm64_app_image
146148
PAID_RUNNER_BUILD_DATA: |
147149
# This system was implemented to allow selective use of paid GitHub-hosted runners, due to the Apple Silicon runner
148150
# incurring a charge at that time. Free Apple Silicon runners are now available so the configuration was moved to
@@ -182,6 +184,7 @@ jobs:
182184
is-nightly: ${{ steps.determination.outputs.is-nightly }}
183185
channel-name: ${{ steps.determination.outputs.channel-name }}
184186
publish-to-s3: ${{ steps.determination.outputs.publish-to-s3 }}
187+
environment: production
185188
permissions: {}
186189
steps:
187190
- name: Determine the type of build
@@ -304,6 +307,7 @@ jobs:
304307
SIGNTOOL_PATH: "C:/Program Files (x86)/Windows Kits/10/bin/10.0.19041.0/x86/signtool.exe"
305308
WIN_CERT_PASSWORD: ${{ secrets[matrix.config.certificate-password-secret] }}
306309
WIN_CERT_CONTAINER_NAME: ${{ secrets[matrix.config.certificate-container] }}
310+
PUPPETEER_SKIP_DOWNLOAD: true
307311

308312
strategy:
309313
matrix:
@@ -484,6 +488,12 @@ jobs:
484488
repo-token: ${{ secrets.GITHUB_TOKEN }}
485489
version: 3.x
486490

491+
- name: Install dependencies (Linux only)
492+
if: runner.os == 'Linux'
493+
run: |
494+
sudo apt-get update
495+
sudo apt-get install -y libx11-dev libxkbfile-dev libsecret-1-dev
496+
487497
- name: Install dependencies
488498
run: yarn
489499

@@ -601,7 +611,7 @@ jobs:
601611

602612
permissions:
603613
id-token: write
604-
contents: read
614+
contents: read
605615

606616
steps:
607617
- name: Download all job transfer artifacts
@@ -614,8 +624,8 @@ jobs:
614624
- name: Configure AWS Credentials for Nightly [S3]
615625
uses: aws-actions/configure-aws-credentials@v4
616626
with:
617-
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
618-
aws-region: us-east-1
627+
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
628+
aws-region: us-east-1
619629

620630
- name: Publish Nightly [S3]
621631
run: |
@@ -644,7 +654,7 @@ jobs:
644654

645655
permissions:
646656
id-token: write
647-
contents: read
657+
contents: write
648658

649 10000 659
steps:
650660
- name: Download all job transfer artifacts
@@ -673,8 +683,8 @@ jobs:
673683
if: needs.build-type-determination.outputs.publish-to-s3 == 'true'
674684
uses: aws-actions/configure-aws-credentials@v4
675685
with:
676-
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
677-
aws-region: us-east-1
686+
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
687+
aws-region: us-east-1
678688

679689
- name: Publish Release [S3]
680690
if: needs.build-type-determination.outputs.publish-to-s3 == 'true'

.github/workflows/compose-full-changelog.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ jobs:
2929
node-version: ${{ env.NODE_VERSION }}
3030
registry-url: 'https://registry.npmjs.org'
3131

32+
- name: Install Dependencies (Linux only)
33+
if: runner.os == 'Linux'
34+
run: |
35+
sudo apt-get update
36+
sudo apt-get install -y libx11-dev libxkbfile-dev libsecret-1-dev
37+
3238
- name: Get Tag
3339
id: tag_name
3440
run: |

arduino-ide-extension/package.json

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "arduino-ide-extension",
3-
"version": "2.3.5",
3+
"version": "2.3.7",
44
"description": "An extension for Theia building the Arduino IDE",
55
"license": "AGPL-3.0-or-later",
66
"scripts": {
@@ -24,28 +24,29 @@
2424
},
2525
"dependencies": {
2626
"@grpc/grpc-js": "^1.8.14",
27-
"@theia/application-package": "1.41.0",
28-
"@theia/core": "1.41.0",
29-
"@theia/debug": "1.41.0",
30-
"@theia/editor": "1.41.0",
31-
"@theia/electron": "1.41.0",
32-
"@theia/filesystem": "1.41.0",
33-
"@theia/keymaps": "1.41.0",
34-
"@theia/markers": "1.41.0",
35-
"@theia/messages": "1.41.0",
36-
"@theia/monaco": "1.41.0",
37-
"@theia/monaco-editor-core": "1.72.3",
38-
"@theia/navigator": "1.41.0",
39-
"@theia/outline-view": "1.41.0",
40-
"@theia/output": "1.41.0",
41-
"@theia/plugin-ext": "1.41.0",
42-
"@theia/plugin-ext-vscode": "1.41.0",
43-
"@theia/preferences": "1.41.0",
44-
"@theia/scm": "1.41.0",
45-
"@theia/search-in-workspace": "1.41.0",
46-
"@theia/terminal": "1.41.0",
47-
"@theia/typehierarchy": "1.41.0",
48-
"@theia/workspace": "1.41.0",
27+
"@theia/application-package": "1.57.0",
28+
"@theia/core": "1.57.0",
29+
"@theia/debug": "1.57.0",
30+
"@theia/editor": "1.57.0",
31+
"@theia/electron": "1.57.0",
32+
"@theia/filesystem": "1.57.0",
33+
"@theia/keymaps": "1.57.0",
34+
"@theia/markers": "1.57.0",
35+
"@theia/messages": "1.57.0",
36+
"@theia/monaco": "1.57.0",
37+
"@theia/monaco-editor-core": "1.83.101",
38+
"@theia/navigator": "1.57.0",
39+
"@theia/outline-view": "1.57.0",
40+
"@theia/output": "1.57.0",
41+
"@theia/plugin-ext": "1.57.0",
42+
"@theia/plugin-ext-vscode": "1.57.0",
43+
"@theia/preferences": "1.57.0",
44+
"@theia/scm": "1.57.0",
45+
"@theia/search-in-workspace": "1.57.0",
46+
"@theia/terminal": "1.57.0",
47+
"@theia/test": "1.57.0",
48+
"@theia/typehierarchy": "1.57.0",
49+
"@theia/workspace": "1.57.0",
4950
"@tippyjs/react": "^4.2.5",
5051
"@types/auth0-js": "^9.21.3",
5152
"@types/btoa": "^1.2.3",
@@ -57,7 +58,6 @@
5758
"@types/node-fetch": "^2.5.7",
5859
"@types/p-queue": "^2.3.1",
5960
"@types/ps-tree": "^1.1.0",
60-
"@types/react-tabs": "^2.3.2",
6161
"@types/temp": "^0.8.34",
6262
"arduino-serial-plotter-webapp": "0.2.0",
6363
"async-mutex": "^0.3.0",
@@ -99,7 +99,7 @@
9999
"react-markdown": "^8.0.0",
100100
"react-perfect-scrollbar": "^1.5.8",
101101
"react-select": "^5.6.0",
102-
"react-tabs": "^3.1.2",
102+
"react-tabs": "^6.1.0",
103103
"react-window": "^1.8.6",
104104
"semver": "^7.3.2",
105105
"string-natural-compare": "^2.0.3",
@@ -126,7 +126,7 @@
126126
"mockdate": "^3.0.5",
127127
"moment": "^2.24.0",
128128
"ncp": "^2.0.0",
129-
"rimraf": "^2.6.1"
129+
"rimraf": "^5.0.0"
130130
},
131131
"optionalDependencies": {
132132
"@pingghost/protoc": "^1.0.2",
@@ -172,7 +172,7 @@
172172
],
173173
"arduino": {
174174
"arduino-cli": {
175-
"version": "1.1.1"
175+
"version": "1.2.0"
176176
},
177177
"arduino-fwuploader": {
178178
"version": "2.4.1"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ColorContribution } from '@theia/core/lib/browser/color-application-contribution';
22
import { ColorRegistry } from '@theia/core/lib/browser/color-registry';
33
import { CommonMenus } from '@theia/core/lib/browser/common-frontend-contribution';
4-
import { FrontendApplicationContribution } from '@theia/core/lib/browser/frontend-application';
4+
import { FrontendApplicationContribution } from '@theia/core/lib/browser/frontend-application-contribution';
55
import { FrontendApplicationStateService } from '@theia/core/lib/browser/frontend-application-state';
66
import {
77
TabBarToolbarContribution,

arduino-ide-extension/src/browser/arduino-ide-frontend-module.ts

Lines changed: 10 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
import '../../src/browser/style/index.css';
2-
import {
3-
Container,
4-
ContainerModule,
5-
interfaces,
6-
} from '@theia/core/shared/inversify';
2+
import { Container, ContainerModule } from '@theia/core/shared/inversify';
73
import { WidgetFactory } from '@theia/core/lib/browser/widget-manager';
84
import { CommandContribution } from '@theia/core/lib/common/command';
95
import { bindViewContribution } from '@theia/core/lib/browser/shell/view-contribution';
106
import { TabBarToolbarContribution } from '@theia/core/lib/browser/shell/tab-bar-toolbar';
117
import { WebSocketConnectionProvider } from '@theia/core/lib/browser/messaging/ws-connection-provider';
12-
import {
13-
FrontendApplicationContribution,
14-
FrontendApplication as TheiaFrontendApplication,
15-
} from '@theia/core/lib/browser/frontend-application';
8+
import { FrontendApplication as TheiaFrontendApplication } from '@theia/core/lib/browser/frontend-application';
9+
import { FrontendApplicationContribution } from '@theia/core/lib/browser/frontend-application-contribution';
1610
import { LibraryListWidget } from './library/library-list-widget';
1711
import { ArduinoFrontendContribution } from './arduino-frontend-contribution';
1812
import {
@@ -57,8 +51,6 @@ import {
5751
DockPanelRenderer as TheiaDockPanelRenderer,
5852
TabBarRendererFactory,
5953
ContextMenuRenderer,
60-
createTreeContainer,
61-
TreeWidget,
6254
} from '@theia/core/lib/browser';
6355
import { MenuContribution } from '@theia/core/lib/common/menu';
6456
import {
@@ -97,7 +89,6 @@ import {
9789
ArduinoDaemonPath,
9890
ArduinoDaemon,
9991
} from '../common/protocol/arduino-daemon';
100-
import { EditorCommandContribution as TheiaEditorCommandContribution } from '@theia/editor/lib/browser';
10192
import {
10293
FrontendConnectionStatusService,
10394
ApplicationConnectionStatusContribution,
@@ -186,7 +177,6 @@ import {
186177
import { About } from './contributions/about';
187178
import { IconThemeService } from '@theia/core/lib/browser/icon-theme-service';
188179
import { TabBarRenderer } from './theia/core/tab-bars';
189-
import { EditorCommandContribution } from './theia/editor/editor-command';
190180
import { NavigatorTabBarDecorator as TheiaNavigatorTabBarDecorator } from '@theia/navigator/lib/browser/navigator-tab-bar-decorator';
191181
import { NavigatorTabBarDecorator } from './theia/navigator/navigator-tab-bar-decorator';
192182
import { Debug, DebugDisabledStatusMessageSource } from './contributions/debug';
@@ -275,7 +265,7 @@ import {
275265
IDEUpdaterDialog,
276266
IDEUpdaterDialogProps,
277267
} from './dialogs/ide-updater/ide-updater-dialog';
278-
import { ElectronIpcConnectionProvider } from '@theia/core/lib/electron-browser/messaging/electron-ipc-connection-provider';
268+
import { ElectronIpcConnectionProvider } from '@theia/core/lib/electron-browser/messaging/electron-ipc-connection-source';
279269
import { MonitorModel } from './monitor-model';
280270
import { MonitorManagerProxyClientImpl } from './monitor-manager-proxy-client-impl';
281271
import { EditorManager as TheiaEditorManager } from '@theia/editor/lib/browser/editor-manager';
@@ -295,10 +285,6 @@ import { PreferenceTreeGenerator } from './theia/preferences/preference-tree-gen
295285
import { PreferenceTreeGenerator as TheiaPreferenceTreeGenerator } from '@theia/preferences/lib/browser/util/preference-tree-generator';
296286
import { AboutDialog } from './theia/core/about-dialog';
297287
import { AboutDialog as TheiaAboutDialog } from '@theia/core/lib/browser/about-dialog';
298-
import {
299-
SurveyNotificationService,
300-
SurveyNotificationServicePath,
301-
} from '../common/protocol/survey-service';
302288
import { WindowContribution } from './theia/core/window-contribution';
303289
import { WindowContribution as TheiaWindowContribution } from '@theia/core/lib/browser/window-contribution';
304290
import { CoreErrorHandler } from './contributions/core-error-handler';
@@ -381,19 +367,13 @@ import { DebugSessionWidget } from '@theia/debug/lib/browser/view/debug-session-
381367
import { DebugConfigurationWidget } from './theia/debug/debug-configuration-widget';
382368
import { DebugConfigurationWidget as TheiaDebugConfigurationWidget } from '@theia/debug/lib/browser/view/debug-configuration-widget';
383369
import { DebugToolBar } from '@theia/debug/lib/browser/view/debug-toolbar-widget';
384-
import {
385-
PluginTree,
386-
PluginTreeModel,
387-
TreeViewWidgetOptions,
388-
VIEW_ITEM_CONTEXT_MENU,
389-
} from '@theia/plugin-ext/lib/main/browser/view/tree-view-widget';
390-
import { TreeViewDecoratorService } from '@theia/plugin-ext/lib/main/browser/view/tree-view-decorator-service';
391-
import { PLUGIN_VIEW_DATA_FACTORY_ID } from '@theia/plugin-ext/lib/main/browser/view/plugin-view-registry';
392-
import { TreeViewWidget } from './theia/plugin-ext/tree-view-widget';
370+
393371
import {
394372
VersionWelcomeDialog,
395373
VersionWelcomeDialogProps,
396374
} from './dialogs/version-welcome-dialog';
375+
import { TestViewContribution as TheiaTestViewContribution } from '@theia/test/lib/browser/view/test-view-contribution';
376+
import { TestViewContribution } from './theia/test/test-view-contribution';
397377

398378
// Hack to fix copy/cut/paste issue after electron version update in Theia.
399379
// https://github.com/eclipse-theia/theia/issues/12487
@@ -574,15 +554,6 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
574554
WorkspaceVariableContribution
575555
);
576556

577-
bind(SurveyNotificationService)
578-
.toDynamicValue((context) => {
579-
return ElectronIpcConnectionProvider.createProxy(
580-
context.container,
581-
SurveyNotificationServicePath
582-
);
583-
})
584-
.inSingletonScope();
585-
586557
// Layout and shell customizations.
587558
rebind(TheiaOutlineViewContribution)
588559
.to(OutlineViewContribution)
@@ -856,13 +827,6 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
856827
);
857828
});
858829

859-
// Workaround for https://github.com/eclipse-theia/theia/issues/8722
860-
// Do not trigger a save on IDE startup if `"editor.autoSave": "on"` was set as a preference.
861-
// Note: `"editor.autoSave" was renamed to `"files.autoSave" and `"on"` was replaced with three
862-
// different cases, but we treat `!== 'off'` as auto save enabled. (https://github.com/eclipse-theia/theia/issues/10812)
863-
bind(EditorCommandContribution).toSelf().inSingletonScope();
864-
rebind(TheiaEditorCommandContribution).toService(EditorCommandContribution);
865-
866830
// Silent the badge decoration in the Explorer view.
867831
bind(NavigatorTabBarDecorator).toSelf().inSingletonScope();
868832
rebind(TheiaNavigatorTabBarDecorator).toService(NavigatorTabBarDecorator);
@@ -1112,42 +1076,7 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
11121076
TerminalFrontendContribution
11131077
);
11141078

1115-
bindViewsWelcome_TheiaGH14309({ bind, widget: TreeViewWidget });
1079+
// Hides the Test Explorer from the side-bar
1080+
bind(TestViewContribution).toSelf().inSingletonScope();
1081+
rebind(TheiaTestViewContribution).toService(TestViewContribution);
11161082
});
1117-
1118-
// Align the viewsWelcome rendering with VS Code (https://github.com/eclipse-theia/theia/issues/14309)
1119-
// Copied from Theia code but with customized TreeViewWidget with the customized viewsWelcome rendering
1120-
// https://github.com/eclipse-theia/theia/blob/0c5f69455d9ee355b1a7ca510ffa63d2b20f0c77/packages/plugin-ext/src/main/browser/plugin-ext-frontend-module.ts#L159-L181
1121-
function bindViewsWelcome_TheiaGH14309({
1122-
bind,
1123-
widget,
1124-
}: {
1125-
bind: interfaces.Bind;
1126-
widget: interfaces.Newable<TreeWidget>;
1127-
}) {
1128-
bind(WidgetFactory)
1129-
.toDynamicValue(({ container }) => ({
1130-
id: PLUGIN_VIEW_DATA_FACTORY_ID,
1131-
createWidget: (options: TreeViewWidgetOptions) => {
1132-
const props = {
1133-
contextMenuPath: VIEW_ITEM_CONTEXT_MENU,
1134-
expandOnlyOnExpansionToggleClick: true,
1135-
expansionTogglePadding: 22,
1136-
globalSelection: true,
1137-
leftPadding: 8,
1138-
search: true,
1139-
multiSelect: options.multiSelect,
1140-
};
1141-
const child = createTreeContainer(container, {
1142-
props,
1143-
tree: PluginTree,
1144-
model: PluginTreeModel,
1145-
widget,
1146-
decoratorService: TreeViewDecoratorService,
1147-
});
1148-
child.bind(TreeViewWidgetOptions).toConstantValue(options);
1149-
return child.get(TreeWidget);
1150-
},
1151-
}))
1152-
.inSingletonScope();
1153-
}

arduino-ide-extension/src/browser/arduino-preferences.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -280,14 +280,6 @@ const properties: ArduinoPreferenceSchemaProperties = {
280280
),
281281
default: 'https://auth.arduino.cc/login#/register',
282282
},
283-
'arduino.survey.notification': {
284-
type: 'boolean',
285-
description: nls.localize(
286-
'arduino/preferences/survey.notification',
287-
'True if users should be notified if a survey is available. True by default.'
288-
),
289-
default: true,
290-
},
291283
'arduino.cli.daemon.debug': {
292284
type: 'boolean',
293285
description: nls.localize(
@@ -355,7 +347,6 @@ export interface ArduinoConfiguration {
355347
'arduino.auth.domain': string;
356348
'arduino.auth.audience': string;
357349
'arduino.auth.registerUri': string;
358-
'arduino.survey.notification': boolean;
359350
'arduino.cli.daemon.debug': boolean;
360351
'arduino.sketch.inoBlueprint': string;
361352
'arduino.checkForUpdates': boolean;

arduino-ide-extension/src/browser/auth/authentication-client-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Emitter } from '@theia/core/lib/common/event';
33
import { JsonRpcProxy } from '@theia/core/lib/common/messaging/proxy-factory';
44
import { WindowService } from '@theia/core/lib/browser/window/window-service';
55
import { DisposableCollection } from '@theia/core/lib/common/disposable';
6-
import { FrontendApplicationContribution } from '@theia/core/lib/browser/frontend-application';
6+
import { FrontendApplicationContribution } from '@theia/core/lib/browser/frontend-application-contribution';
77
import {
88
CommandRegistry,
99
CommandContribution,

0 commit comments

Comments
 (0)
0