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
consterrorMsg=`[FATAL] Failed to sync state with the route for "${this.filename}" after 5 attempts. Aborting editor setup to prevent data corruption.`;
75
+
console.error(errorMsg);
76
+
notify.showError(errorMsg); // Using the custom notifier
77
+
}
78
+
return;
79
+
}
80
+
81
+
console.log(
82
+
"State and route are in sync. Proceeding with editor setup for",
83
+
this.filename
84
+
);
67
85
consteditorEl=document.getElementById("editor");
68
86
if (!editorEl) {
69
-
console.warn(
70
-
"Editor component mounted, but #editor div was not found in the DOM. Aborting setup."
// Safety Check 2: Final verification before saving
108
+
if (state.req.name!==this.filename) {
109
+
// Corrected the error message to be more accurate
110
+
consterrorMsg=`CRITICAL: Save operation aborted. The application's active file ("${state.req.name}") does not match the file you are trying to save ("${this.filename}").`;
0 commit comments