Skip to content

Commit 167c3bd

Browse files
author
Akos Kitta
committed
chore: use [email protected]
Signed-off-by: Akos Kitta <[email protected]>
1 parent aa9b10d commit 167c3bd

File tree

54 files changed

+1967
-1918
lines changed

Some content is hidden

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

54 files changed

+1967
-1918
lines changed

arduino-ide-extension/package.json

+21-20
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,28 @@
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",
27+
"@theia/application-package": "1.46.1",
28+
"@theia/core": "1.46.1",
29+
"@theia/debug": "1.46.1",
30+
"@theia/editor": "1.46.1",
31+
"@theia/electron": "1.46.1",
32+
"@theia/filesystem": "1.46.1",
33+
"@theia/keymaps": "1.46.1",
34+
"@theia/markers": "1.46.1",
35+
"@theia/messages": "1.46.1",
36+
"@theia/monaco": "1.46.1",
3737
"@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/preferences": "1.41.0",
43-
"@theia/scm": "1.41.0",
44-
"@theia/search-in-workspace": "1.41.0",
45-
"@theia/terminal": "1.41.0",
46-
"@theia/typehierarchy": "1.41.0",
47-
"@theia/workspace": "1.41.0",
38+
"@theia/navigator": "1.46.1",
39+
"@theia/outline-view": "1.46.1",
40+
"@theia/output": "1.46.1",
41+
"@theia/plugin-ext": "1.46.1",
42+
"@theia/preferences": "1.46.1",
43+
"@theia/scm": "1.46.1",
44+
"@theia/search-in-workspace": "1.46.1",
45+
"@theia/terminal": "1.46.1",
46+
"@theia/test": "1.46.1",
47+
"@theia/typehierarchy": "1.46.1",
48+
"@theia/workspace": "1.46.1",
4849
"@tippyjs/react": "^4.2.5",
4950
"@types/auth0-js": "^9.21.3",
5051
"@types/btoa": "^1.2.3",

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

+1-1
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

+9-18
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ import { CommandContribution } from '@theia/core/lib/common/command';
55
import { bindViewContribution } from '@theia/core/lib/browser/shell/view-contribution';
66
import { TabBarToolbarContribution } from '@theia/core/lib/browser/shell/tab-bar-toolbar';
77
import { WebSocketConnectionProvider } from '@theia/core/lib/browser/messaging/ws-connection-provider';
8-
import {
9-
FrontendApplicationContribution,
10-
FrontendApplication as TheiaFrontendApplication,
11-
} 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';
1210
import { LibraryListWidget } from './library/library-list-widget';
1311
import { ArduinoFrontendContribution } from './arduino-frontend-contribution';
1412
import {
@@ -266,7 +264,7 @@ import {
266264
IDEUpdaterDialog,
267265
IDEUpdaterDialogProps,
268266
} from './dialogs/ide-updater/ide-updater-dialog';
269-
import { ElectronIpcConnectionProvider } from '@theia/core/lib/electron-browser/messaging/electron-ipc-connection-provider';
267+
import { ElectronIpcConnectionProvider } from '@theia/core/lib/electron-browser/messaging/electron-ipc-connection-source';
270268
import { MonitorModel } from './monitor-model';
271269
import { MonitorManagerProxyClientImpl } from './monitor-manager-proxy-client-impl';
272270
import { EditorManager as TheiaEditorManager } from '@theia/editor/lib/browser/editor-manager';
@@ -286,10 +284,6 @@ import { PreferenceTreeGenerator } from './theia/preferences/preference-tree-gen
286284
import { PreferenceTreeGenerator as TheiaPreferenceTreeGenerator } from '@theia/preferences/lib/browser/util/preference-tree-generator';
287285
import { AboutDialog } from './theia/core/about-dialog';
288286
import { AboutDialog as TheiaAboutDialog } from '@theia/core/lib/browser/about-dialog';
289-
import {
290-
SurveyNotificationService,
291-
SurveyNotificationServicePath,
292-
} from '../common/protocol/survey-service';
293287
import { WindowContribution } from './theia/core/window-contribution';
294288
import { WindowContribution as TheiaWindowContribution } from '@theia/core/lib/browser/window-contribution';
295289
import { CoreErrorHandler } from './contributions/core-error-handler';
@@ -372,6 +366,8 @@ import { DebugSessionWidget } from '@theia/debug/lib/browser/view/debug-session-
372366
import { DebugConfigurationWidget } from './theia/debug/debug-configuration-widget';
373367
import { DebugConfigurationWidget as TheiaDebugConfigurationWidget } from '@theia/debug/lib/browser/view/debug-configuration-widget';
374368
import { DebugToolBar } from '@theia/debug/lib/browser/view/debug-toolbar-widget';
369+
import { TestViewContribution as TheiaTestViewContribution } from '@theia/test/lib/browser/view/test-view-contribution';
370+
import { TestViewContribution } from './theia/test/test-view-contribution';
375371

376372
// Hack to fix copy/cut/paste issue after electron version update in Theia.
377373
// https://github.com/eclipse-theia/theia/issues/12487
@@ -552,15 +548,6 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
552548
WorkspaceVariableContribution
553549
);
554550

555-
bind(SurveyNotificationService)
556-
.toDynamicValue((context) => {
557-
return ElectronIpcConnectionProvider.createProxy(
558-
context.container,
559-
SurveyNotificationServicePath
560-
);
561-
})
562-
.inSingletonScope();
563-
564551
// Layout and shell customizations.
565552
rebind(TheiaOutlineViewContribution)
566553
.to(OutlineViewContribution)
@@ -1082,4 +1069,8 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
10821069
rebind(TheiaTerminalFrontendContribution).toService(
10831070
TerminalFrontendContribution
10841071
);
1072+
1073+
// Hides the Test Explorer from the side-bar
1074+
bind(TestViewContribution).toSelf().inSingletonScope();
1075+
rebind(TheiaTestViewContribution).toService(TestViewContribution);
10851076
});

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

-9
Original file line numberDiff line numberDiff line change
@@ -260,14 +260,6 @@ const properties: ArduinoPreferenceSchemaProperties = {
260260
),
261261
default: 'https://auth.arduino.cc/login#/register',
262262
},
263-
'arduino.survey.notification': {
264-
type: 'boolean',
265-
description: nls.localize(
266-
'arduino/preferences/survey.notification',
267-
'True if users should be notified if a survey is available. True by default.'
268-
),
269-
default: true,
270-
},
271263
'arduino.cli.daemon.debug': {
272264
type: 'boolean',
273265
description: nls.localize(
@@ -333,7 +325,6 @@ export interface ArduinoConfiguration {
333325
'arduino.auth.domain': string;
334326
'arduino.auth.audience': string;
335327
'arduino.auth.registerUri': string;
336-
'arduino.survey.notification': boolean;
337328
'arduino.cli.daemon.debug': boolean;
338329
'arduino.sketch.inoBlueprint': string;
339330
'arduino.checkForUpdates': boolean;

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

+1-1
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,

arduino-ide-extension/src/browser/boards/boards-auto-installer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FrontendApplicationContribution } from '@theia/core/lib/browser/frontend-application';
1+
import { FrontendApplicationContribution } from '@theia/core/lib/browser/frontend-application-contribution';
22
import { DisposableCollection } from '@theia/core/lib/common/disposable';
33
import { MessageService } from '@theia/core/lib/common/message-service';
44
import { MessageType } from '@theia/core/lib/common/message-service-protocol';

arduino-ide-extension/src/browser/boards/boards-data-store.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FrontendApplicationContribution } from '@theia/core/lib/browser/frontend-application';
1+
import { FrontendApplicationContribution } from '@theia/core/lib/browser/frontend-application-contribution';
22
import { FrontendApplicationStateService } from '@theia/core/lib/browser/frontend-application-state';
33
import { StorageService } from '@theia/core/lib/browser/storage-service';
44
import type {

arduino-ide-extension/src/browser/boards/boards-service-provider.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FrontendApplicationContribution } from '@theia/core/lib/browser/frontend-application';
1+
import { FrontendApplicationContribution } from '@theia/core/lib/browser/frontend-application-contribution';
22
import { FrontendApplicationStateService } from '@theia/core/lib/browser/frontend-application-state';
33
import { StorageService } from '@theia/core/lib/browser/storage-service';
44
import {

arduino-ide-extension/src/browser/config/config-service-client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FrontendApplicationContribution } from '@theia/core/lib/browser/frontend-application';
1+
import { FrontendApplicationContribution } from '@theia/core/lib/browser/frontend-application-contribution';
22
import { FrontendApplicationStateService } from '@theia/core/lib/browser/frontend-application-state';
33
import { DisposableCollection } from '@theia/core/lib/common/disposable';
44
import { Emitter, Event } from '@theia/core/lib/common/event';

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

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { Dialog } from '@theia/core/lib/browser/dialogs';
2-
import type {
3-
FrontendApplication,
4-
OnWillStopAction,
5-
} from '@theia/core/lib/browser/frontend-application';
2+
import type { FrontendApplication } from '@theia/core/lib/browser/frontend-application';
3+
import type { OnWillStopAction } from '@theia/core/lib/browser/frontend-application-contribution';
64
import { ApplicationShell } from '@theia/core/lib/browser/shell/application-shell';
75
import { nls } from '@theia/core/lib/common/nls';
86
import type { MaybePromise } from '@theia/core/lib/common/types';

arduino-ide-extension/src/browser/contributions/survey-notification.ts

-78
This file was deleted.

arduino-ide-extension/src/browser/create/create-features.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FrontendApplicationContribution } from '@theia/core/lib/browser/frontend-application';
1+
import { FrontendApplicationContribution } from '@theia/core/lib/browser/frontend-application-contribution';
22
import { DisposableCollection } from '@theia/core/lib/common/disposable';
33
import { Emitter, Event } from '@theia/core/lib/common/event';
44
import URI from '@theia/core/lib/common/uri';

arduino-ide-extension/src/browser/create/create-fs-provider.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
Disposable,
66
DisposableCollection,
77
} from '@theia/core/lib/common/disposable';
8-
import { FrontendApplicationContribution } from '@theia/core/lib/browser/frontend-application';
8+
import { FrontendApplicationContribution } from '@theia/core/lib/browser/frontend-application-contribution';
99
import {
1010
Stat,
1111
FileType,

arduino-ide-extension/src/browser/notification-center.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
import { Emitter } from '@theia/core/lib/common/event';
77
import { JsonRpcProxy } from '@theia/core/lib/common/messaging/proxy-factory';
88
import { DisposableCollection } from '@theia/core/lib/common/disposable';
9-
import { FrontendApplicationContribution } from '@theia/core/lib/browser/frontend-application';
9+
import { FrontendApplicationContribution } from '@theia/core/lib/browser/frontend-application-contribution';
1010
import {
1111
IndexUpdateDidCompleteParams,
1212
IndexUpdateDidFailParams,

arduino-ide-extension/src/browser/sketches-service-client-impl.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
Disposable,
1010
DisposableCollection,
1111
} from '@theia/core/lib/common/disposable';
12-
import { FrontendApplicationContribution } from '@theia/core/lib/browser/frontend-application';
12+
import { FrontendApplicationContribution } from '@theia/core/lib/browser/frontend-application-contribution';
1313
import { Sketch, SketchesService } from '../common/protocol';
1414
import { ConfigServiceClient } from './config/config-service-client';
1515
import {
@@ -74,6 +74,7 @@ export class SketchesServiceClientImpl
7474
const sketchDirUri = this.configService.tryGetSketchDirUri();
7575
this.watchSketchbookDir(sketchDirUri);
7676
const refreshCurrentSketch = async () => {
77+
await this.workspaceService.ready;
7778
const currentSketch = await this.loadCurrentSketch();
7879
const ideTempFolderUri = await this.getIdeTempFolderUriForSketch(
7980
currentSketch

arduino-ide-extension/src/browser/theia/core/common-frontend-contribution.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
CommonCommands,
33
CommonFrontendContribution as TheiaCommonFrontendContribution,
44
} from '@theia/core/lib/browser/common-frontend-contribution';
5-
import type { OnWillStopAction } from '@theia/core/lib/browser/frontend-application';
5+
import type { OnWillStopAction } from '@theia/core/lib/browser/frontend-application-contribution';
66
import type { KeybindingRegistry } from '@theia/core/lib/browser/keybinding';
77
import type { CommandRegistry } from '@theia/core/lib/common/command';
88
import type { MenuModelRegistry } from '@theia/core/lib/common/menu';

arduino-ide-extension/src/browser/theia/core/connection-status-service.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import {
2-
ApplicationConnectionStatusContribution as TheiaApplicationConnectionStatusContribution,
32
ConnectionStatus,
3+
ApplicationConnectionStatusContribution as TheiaApplicationConnectionStatusContribution,
44
FrontendConnectionStatusService as TheiaFrontendConnectionStatusService,
55
} from '@theia/core/lib/browser/connection-status-service';
6-
import type { FrontendApplicationContribution } from '@theia/core/lib/browser/frontend-application';
7-
import { WebSocketConnectionProvider } from '@theia/core/lib/browser/index';
6+
import type { FrontendApplicationContribution } from '@theia/core/lib/browser/frontend-application-contribution';
7+
import { WebSocketConnectionSource } from '@theia/core/lib/browser/messaging/ws-connection-source';
88
import { StatusBarAlignment } from '@theia/core/lib/browser/status-bar/status-bar';
99
import { Disposable } from '@theia/core/lib/common/disposable';
1010
import { Emitter, Event } from '@theia/core/lib/common/event';
@@ -114,8 +114,8 @@ export class FrontendConnectionStatusService extends TheiaFrontendConnectionStat
114114
private readonly daemonPort: DaemonPort;
115115
@inject(IsOnline)
116116
private readonly isOnline: IsOnline;
117-
@inject(WebSocketConnectionProvider)
118-
private readonly connectionProvider: WebSocketConnectionProvider;
117+
@inject(WebSocketConnectionSource)
118+
private readonly connectionSource: WebSocketConnectionSource;
119119

120120
@postConstruct()
121121
protected override init(): void {
@@ -128,7 +128,7 @@ export class FrontendConnectionStatusService extends TheiaFrontendConnectionStat
128128
}
129129

130130
protected override async performPingRequest(): Promise<void> {
131-
if (!this.connectionProvider['socket'].connected) {
131+
if (!this.connectionSource['socket'].connected) {
132132
this.updateStatus(false);
133133
return;
134134
}
@@ -171,8 +171,8 @@ export class ApplicationConnectionStatusContribution extends TheiaApplicationCon
171171
private readonly notificationManager: NotificationManager;
172172
@inject(CreateFeatures)
173173
private readonly createFeatures: CreateFeatures;
174-
@inject(WebSocketConnectionProvider)
175-
private readonly connectionProvider: WebSocketConnectionProvider;
174+
@inject(WebSocketConnectionSource)
175+
private readonly connectionSource: WebSocketConnectionSource;
176176

177177
private readonly offlineStatusDidChangeEmitter = new Emitter<
178178
OfflineConnectionStatus | undefined
@@ -202,7 +202,7 @@ export class ApplicationConnectionStatusContribution extends TheiaApplicationCon
202202
const params = <OfflineMessageParams>{
203203
port: this.daemonPort.port,
204204
online: this.isOnline.online,
205-
backendConnected: this.connectionProvider['socket'].connected, // https://github.com/arduino/arduino-ide/issues/2081
205+
backendConnected: this.connectionSource['socket'].connected, // https://github.com/arduino/arduino-ide/issues/2081
206206
};
207207
this._offlineStatus = offlineConnectionStatusType(params);
208208
const { text, tooltip } = offlineMessage(params);

arduino-ide-extension/src/browser/theia/debug/debug-session-contribution.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ export class DefaultDebugSessionFactory extends TheiaDefaultDebugSessionFactory
2020
sessionId,
2121
() =>
2222
new Promise<DebugChannel>((resolve) =>
23-
this.connectionProvider.openChannel(
23+
this.connectionProvider.listen(
2424
`${DebugAdapterPath}/${sessionId}`,
25-
(wsChannel) => {
25+
(_, wsChannel) => {
2626
resolve(new ForwardingDebugChannel(wsChannel));
2727
},
28-
{ reconnecting: false }
28+
false
2929
)
3030
),
3131
this.getTraceOutputChannel()

arduino-ide-extension/src/browser/theia/monaco/monaco-theming-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FrontendApplicationContribution } from '@theia/core/lib/browser/frontend-application';
1+
import { FrontendApplicationContribution } from '@theia/core/lib/browser/frontend-application-contribution';
22
import { ThemeService } from '@theia/core/lib/browser/theming';
33
import {
44
Disposable,

0 commit comments

Comments
 (0)