Skip to content

Commit

Permalink
🎨 #4567
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Jan 6, 2023
1 parent cdc8f41 commit 65e7a3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/electron/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ const initKernel = (workspace, lang) => {
resolve(false)
return
}
if (isDevEnv) {
if (isDevEnv && workspaces.length === 0) {
writeLog('got kernel port [' + kernelPort + ']')
} else {
const getAvailablePort = () => {
Expand All @@ -411,7 +411,7 @@ const initKernel = (workspace, lang) => {
return
}
const cmds = ['--port', kernelPort, '--wd', appDir]
if (isDevEnv) {
if (isDevEnv && workspaces.length === 0) {
cmds.push('--mode', 'dev')
}
if (workspace) {
Expand All @@ -422,7 +422,7 @@ const initKernel = (workspace, lang) => {
' ')}]`
writeLog(cmd)
let kernelProcessPid = ''
if (!isDevEnv) {
if (!isDevEnv || workspaces.length > 0) {
const cp = require('child_process')
const kernelProcess = cp.spawn(kernelPath,
cmds, {
Expand Down

0 comments on commit 65e7a3f

Please sign in to comment.