wip fix
This commit is contained in:
parent
7024a26f3c
commit
8ef51cdc23
|
|
@ -95,6 +95,7 @@ const codeLoad = (id: string, path: string) => {
|
|||
|
||||
const files = new Y.Map();
|
||||
|
||||
console.log("loading code", path);
|
||||
const dirs = readDirectoryRecursively(path);
|
||||
for (const [k, v] of Object.entries(dirs)) {
|
||||
files.set(k, v);
|
||||
|
|
|
|||
|
|
@ -52,7 +52,6 @@ export const viLoadSnapshot = async (p: PG) => {
|
|||
const code = p.code[name].doc;
|
||||
if (code) {
|
||||
const src = code.getMap("map").get("files")?.get("index.js");
|
||||
console.log(src);
|
||||
applyEnv(p, src);
|
||||
treeRebuild(p);
|
||||
p.render();
|
||||
|
|
|
|||
Loading…
Reference in New Issue