Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): mark tracked folders replaced by files as missing #48086

OpenKiritoXDone(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/48086/headopened View on GitHub

Showing 2 changed files with 14 additions and 7 deletions.

x
0 of 2 viewed, 2 left
7 additions and 1 deletionapps/server/src/workspace/WorkspaceFolders.test.tsModified
View file
@@ -394,6 +394,7 @@
const inside = folder("web", "app", "packages", "web");
const repository = folder("api", "api");
const missing = folder("gone", "gone");
+ const replaced = folder("manuals", "manuals");
const linked = folder("shared", "app", "linked");
const shared = path.join(tmp, "shared");
const worktree = path.join(tmp, "tree");
@@ -417,6 +418,7 @@
for (const directory of [inside.path, shared]) {
yield* fileSystem.makeDirectory(directory, { recursive: true });
+ yield* fileSystem.writeFileString(replaced.path, "release notes");
yield* fileSystem.symlink(shared, linked.path);
yield* fileSystem.makeDirectory(path.join(tmp, "elsewhere", "x", ".git"), {
recursive: true,
@@ -431,6 +433,7 @@
{ ...inside, state: "plain" },
{ ...repository, state: "git" },
{ ...missing, state: "missing" },
+ { ...replaced, state: "missing" },
{ ...linked, state: "plain" },
});
@@ -479,7 +482,10 @@
}).pipe(