Skip to content

Commit

Permalink
- merge dev into main
Browse files Browse the repository at this point in the history
  • Loading branch information
ovaldi authored Sep 16, 2021
2 parents bc1ecc6 + 8385ad1 commit c546c4b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package dev.nocalhost.plugin.intellij.ui.action.workload;

import com.intellij.icons.AllIcons;
import com.intellij.ide.RecentProjectsManagerBase;
import com.intellij.ide.impl.OpenProjectTask;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.application.ApplicationManager;
Expand Down Expand Up @@ -85,8 +86,9 @@ private void openProject(String projectPath) {
}
}
}
ProjectManagerEx.getInstanceEx()
.openProject(Paths.get(projectPath), new OpenProjectTask());

var task = new OpenProjectTask();
RecentProjectsManagerBase.getInstanceEx().openProject(Paths.get(projectPath), task.withRunConfigurators());
});
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package dev.nocalhost.plugin.intellij.ui.action.workload;

import com.intellij.ide.RecentProjectsManagerBase;
import com.intellij.ide.impl.OpenProjectTask;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.application.ApplicationManager;
Expand Down Expand Up @@ -396,8 +397,9 @@ private void startDevelop() {

nocalhostSettings.setDevModeServiceToProjectPath(devModeService);
nocalhostSettings.set(ExecutionTask.asKey(devModeService.getProjectPath()), action);
ProjectManagerEx.getInstanceEx().openProject(Paths.get(projectPathReference.get()),
new OpenProjectTask());

var task = new OpenProjectTask();
RecentProjectsManagerBase.getInstanceEx().openProject(Paths.get(projectPathReference.get()), task.withRunConfigurators());
}
});
}
Expand Down

0 comments on commit c546c4b

Please sign in to comment.