mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 14:15:24 +00:00
feat: convert file manager into a plugin
This commit is contained in:
1 parent
b76da9ab52
commit
c85c1fdb86
259 files changed
+54155
-16791
No files matched your search
@@ -253,14 +253,27 @@ describe("resolveWorkspaceTabTarget", () => {
|
||||
expect((result as { host?: Host }).host?.syncId).toBe("sync-web-01");
|
||||
});
|
||||
|
||||
it("skips a non-singleton, non-serial type with no resolvable host", () => {
|
||||
it("skips a non-singleton, non-serial, non-plugin type with no resolvable host", () => {
|
||||
const snapshot: WorkspaceTabSnapshot = {
|
||||
slotId: "s1",
|
||||
type: "host-manager",
|
||||
label: "host-manager",
|
||||
};
|
||||
expect(resolveWorkspaceTabTarget(snapshot, hosts)).toEqual({
|
||||
kind: "skip",
|
||||
});
|
||||
});
|
||||
|
||||
it("keeps a saved tab whose owning plugin is not running as a placeholder", () => {
|
||||
// "files" is the file-manager plugin's tab type. Nothing registered it in
|
||||
// this test, matching the plugin being disabled, failed or still loading.
|
||||
const snapshot: WorkspaceTabSnapshot = {
|
||||
slotId: "s1",
|
||||
type: "files",
|
||||
label: "files",
|
||||
};
|
||||
expect(resolveWorkspaceTabTarget(snapshot, hosts)).toEqual({
|
||||
kind: "skip",
|
||||
kind: "singleton",
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user