This commit is contained in:
naman-bruno
2025-12-02 13:28:06 +05:30
parent 93eae99302
commit 399201bbc9
2 changed files with 5 additions and 2 deletions

View File

@@ -69,12 +69,12 @@ class DefaultWorkspaceManager {
try {
const shouldMigrate = this.needsMigration();
const newWorkspacePath = await this.initializeDefaultWorkspace(null, { migrateFromPreferences: shouldMigrate });
const workspaceYmlPath = path.join(existingPath, 'workspace.yml');
const workspaceYmlPath = path.join(newWorkspacePath, 'workspace.yml');
if (!fs.existsSync(workspaceYmlPath)) {
this.defaultWorkspacePath = null;
} else {
return {
workspacePath: existingPath,
workspacePath: newWorkspacePath,
workspaceUid: this.getDefaultWorkspaceUid()
};
}