You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getGitpodService().server.guessProjectConfiguration(project.id).then(conf=>console.log('guessed',conf)).catch(err=>console.error('could not guess',err));
// TODO(janx): Link to .gitpod.yml directly instead of just the cloneUrl.
82
-
setEditorError(<span>A Gitpod configuration already exists in the project's <aclassName="gp-link"href={project.cloneUrl}>repository</a>.<br/>Please <aclassName="gp-link"href={`/#${project.cloneUrl}`}>edit it in Gitpod</a> instead.</span>);
// TODO(janx): Link to .gitpod.yml directly instead of just the cloneUrl.
89
+
setEditorMessage(<EditorMessagetype="warning"heading="Configuration already exists in git."message="Run a prebuild and open a new workspace to edit configuration."/>);
setEditorMessage(<EditorMessagetype="success"heading="Project type detected."message="You can edit project configuration below before running a prebuild"/>);
setEditorMessage(<EditorMessagetype="warning"heading="Project type could not be detected."message="You can edit project configuration below before running a prebuild."/>);
105
+
setGitpodYml(TASKS.Other);
89
106
})();
90
107
},[teams,team]);
91
108
@@ -94,7 +111,7 @@ export default function () {
94
111
return;
95
112
}
96
113
// (event.target as HTMLButtonElement).disabled = true;
97
-
setEditorError(null);
114
+
setEditorMessage(null);
98
115
if(!!workspaceCreationResult){
99
116
setWorkspaceCreationResult(undefined);
100
117
}
@@ -106,40 +123,50 @@ export default function () {
106
123
});
107
124
setWorkspaceCreationResult(result);
108
125
}catch(error){
109
-
setEditorError(<span>{String(error)}</span>);
126
+
setEditorMessage(<EditorMessagetype="warning"heading="Could not run prebuild."message={String(error)}/>);
<pclassName="text-gray-500 text-center text-base">Fully-automate your project's dev setup. <aclassName="gp-link"href="https://www.gitpod.io/docs/references/gitpod-yml">Learn more</a></p>
<pclassName="text-center text-base text-gray-500 dark:text-gray-400 mt-2 w-64">Edit the project configuration on the left to get started. <aclassName="learn-more"href="https://www.gitpod.io/docs/config-gitpod-file/">Learn more</a>.</p>
0 commit comments