File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1740,17 +1740,19 @@ export class IpcMain {
17401740 return Err ( `Workspace not found: ${ workspaceId } ` ) ;
17411741 }
17421742
1743+ // Get actual workspace path from config (handles both legacy and new format)
1744+ const workspace = this . config . findWorkspace ( workspaceId ) ;
1745+ if ( ! workspace ) {
1746+ return Err ( `Workspace ${ workspaceId } not found in config` ) ;
1747+ }
1748+ const workspacePath = workspace . path ;
1749+
17431750 const metadata = metadataResult . data ;
17441751 const runtimeConfig = metadata . runtimeConfig ?? {
17451752 type : "local" as const ,
17461753 srcBaseDir : this . config . srcDir ,
17471754 } ;
17481755 const runtime = createRuntime ( runtimeConfig ) ;
1749- // Handle in-place workspaces where projectPath === name
1750- const isInPlace = metadata . projectPath === metadata . name ;
1751- const workspacePath = isInPlace
1752- ? metadata . projectPath
1753- : runtime . getWorkspacePath ( metadata . projectPath , metadata . name ) ;
17541756
17551757 const scripts = await listScripts ( runtime , workspacePath ) ;
17561758 return Ok ( scripts ) ;
You can’t perform that action at this time.
0 commit comments