Skip to content

Commit 37b97ed

Browse files
author
Tim Etchells
committed
Add exception for 'deleting' or 'validating' projects
1 parent 4c340e9 commit 37b97ed

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dev/src/microclimate/connection/Connection.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,13 @@ export default class Connection implements ITreeItemAdaptable, vscode.QuickPickI
118118
this.projects = [];
119119

120120
for (const projectInfo of result) {
121+
// This is a hard-coded exception for a Microclimate bug, where projects get stuck in the Deleting or Validating state
122+
// and don't go away until they're deleted from the workspace and MC is restarted.
123+
if (projectInfo.action === "deleting" || projectInfo.action === "validating") {
124+
Log.e("Project is in a bad state and won't be displayed:", projectInfo);
125+
continue;
126+
}
127+
121128
let project: Project;
122129

123130
// If we already have a Project object for this project, just update it, don't make a new object

0 commit comments

Comments
 (0)