UI: Add option to autosave scripts on focus change (#2565)

This commit is contained in:
catloversg
2026-03-14 09:37:17 +07:00
committed by GitHub
parent 9f6e2ce2d1
commit ade79c0f65
11 changed files with 108 additions and 52 deletions
+9
View File
@@ -0,0 +1,9 @@
// To avoid cyclic dependencies, this file should have as few imports as possible.
import type { ContentFilePath } from "../Paths/ContentFile";
import { EventEmitter } from "../utils/EventEmitter";
import type { OpenScript } from "./ui/OpenScript";
export const openScripts: OpenScript[] = [];
export const EditorEvents = new EventEmitter<[hostname: string, filePath: ContentFilePath]>();