Akos Kitta 9a6a457bc4
chore(deps): Updated to Theia 1.39.0 (#2144)
- update Theia to `1.39.0`,
 - remove the application packager and fix the security vulnerabilities,
 - bundle the backed application with `webpack`, and
 - enhance the developer docs.

Co-authored-by: Akos Kitta <a.kitta@arduino.cc>
Co-authored-by: per1234 <accounts@perglass.com>

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
2023-08-14 12:12:05 +02:00

27 lines
812 B
TypeScript

import type { Disposable } from '@theia/core/lib/common/disposable';
import { injectable } from '@theia/core/shared/inversify';
import type { AppInfo, AppService } from '../browser/app-service';
import type { Sketch } from '../common/protocol/sketches-service';
import type { StartupTasks } from '../electron-common/startup-task';
@injectable()
export class ElectronAppService implements AppService {
quit(): void {
window.electronArduino.quitApp();
}
info(): Promise<AppInfo> {
return window.electronArduino.appInfo();
}
registerStartupTasksHandler(
handler: (tasks: StartupTasks) => void
): Disposable {
return window.electronArduino.registerStartupTasksHandler(handler);
}
scheduleDeletion(sketch: Sketch): void {
window.electronArduino.scheduleDeletion(sketch);
}
}