Update editor, workspace, Git services, appearance, and project guides

This commit is contained in:
Knotty Wyvern
2026-10-11 09:41:16 -07:00
parent a8b1defb9d
commit 909894b9c8
153 changed files with 7967 additions and 775 deletions
+8
View File
@@ -46,6 +46,14 @@ export class Documents {
this.emit();
}
importTab(buffer: OpenBuffer) {
if (this.disposed || this.buffers.some(tab => tab.relPath === buffer.relPath)) return false;
this.buffers = this.buffers.filter(tab => tab.kind !== "empty");
this.buffers.push({ ...buffer, id: crypto.randomUUID(), tabId: undefined });
this.select(buffer.relPath);
return true;
}
async open(entry: TreeEntry, target: "current" | "new" = "new") {
const request = ++this.selection;
const previous = target === "current" || this.active?.kind === "empty" ? this.active : undefined;