Skip to content

Commit

Permalink
feat: 加载opensumi-devtools插件
Browse files Browse the repository at this point in the history
  • Loading branch information
tyn1998 committed Jun 27, 2022
1 parent 246c3c9 commit 20e1433
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/electron/src/main/index.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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);
});

0 comments on commit 20e1433

Please sign in to comment.