Skip to content

Commit

Permalink
Merge pull request #165 from mdenet/fix/39-xtext-tool-doesnt-report-b…
Browse files Browse the repository at this point in the history
…ack-editor-generation-errors

Provide a notification on editor builds failing
  • Loading branch information
barnettwilliam authored Jan 23, 2024
2 parents c4cc805 + 8f9cd51 commit bceb4b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions platform/src/Playground.js
Original file line number Diff line number Diff line change
Expand Up @@ -1033,6 +1033,10 @@ async function checkEditorReady(statusUrl, editorInstanceUrl, editorPanelId, edi
if (result.error){
// Unsuccessful
console.log("Editor failed start.");
sessionStorage.removeItem(editorPanelId);
activityManager.setActivityVisibility(editorActivityId, false);
Metro.notify.killAll();
notification("Build Failed", result.error, "ribbed-lightAmber");

} else if (!result.editorReady){
await new Promise(resolve => setTimeout(resolve, 2000));
Expand Down

0 comments on commit bceb4b9

Please sign in to comment.