From 20e1433a0764855c7ea00cf6d9d012b30a6edbe4 Mon Sep 17 00:00:00 2001 From: Lam Tang Date: Mon, 27 Jun 2022 15:48:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8A=A0=E8=BD=BDopensumi-devtools?= =?UTF-8?q?=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/electron/src/main/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/electron/src/main/index.ts b/tools/electron/src/main/index.ts index 76872c97ff..b7928b0bb5 100644 --- a/tools/electron/src/main/index.ts +++ b/tools/electron/src/main/index.ts @@ -1,6 +1,6 @@ import { join } from 'path'; -import { app } from 'electron'; +import { app, session } from 'electron'; import { URI } from '@opensumi/ide-core-common'; import { ElectronMainApp } from '@opensumi/ide-core-electron-main'; @@ -31,4 +31,10 @@ const electronApp = new ElectronMainApp({ electronApp.init().then(() => { electronApp.loadWorkspace(); + + // const devtronPath = join(require('os').homedir(), 'Projects/ASOC2022/devtron'); + // session.defaultSession.loadExtension(devtronPath); + + const opensumicrxPath = join(require('os').homedir(), 'Projects/ASOC2022/opensumi/opensumi-crx/build'); + session.defaultSession.loadExtension(opensumicrxPath); });