Update editor, workspace, Git services, appearance, and project guides
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user