aboutsummaryrefslogtreecommitdiff
path: root/modules/ext/editor.js
diff options
context:
space:
mode:
Diffstat (limited to 'modules/ext/editor.js')
-rw-r--r--modules/ext/editor.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/ext/editor.js b/modules/ext/editor.js
index c597dd5..8c3ac0f 100644
--- a/modules/ext/editor.js
+++ b/modules/ext/editor.js
@@ -44,6 +44,10 @@ class EditorModule {
const ok = this.terminal.fs.writeFile(this._vfsPath, code);
if (ok) {
this.terminal.print('✅ Saved to ' + this._vfsPath, 'success');
+ // Notify tutorial module for quest 4 (edit + save)
+ if (this.terminal.tutorialModule) {
+ this.terminal.tutorialModule.onFileSaved(this._vfsPath);
+ }
} else {
this.terminal.print('❌ Failed to save ' + this._vfsPath, 'error');
}