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();
|
const files = new Y.Map();
|
||||||
|
|
||||||
|
console.log("loading code", path);
|
||||||
const dirs = readDirectoryRecursively(path);
|
const dirs = readDirectoryRecursively(path);
|
||||||
for (const [k, v] of Object.entries(dirs)) {
|
for (const [k, v] of Object.entries(dirs)) {
|
||||||
files.set(k, v);
|
files.set(k, v);
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,6 @@ export const viLoadSnapshot = async (p: PG) => {
|
||||||
const code = p.code[name].doc;
|
const code = p.code[name].doc;
|
||||||
if (code) {
|
if (code) {
|
||||||
const src = code.getMap("map").get("files")?.get("index.js");
|
const src = code.getMap("map").get("files")?.get("index.js");
|
||||||
console.log(src);
|
|
||||||
applyEnv(p, src);
|
applyEnv(p, src);
|
||||||
treeRebuild(p);
|
treeRebuild(p);
|
||||||
p.render();
|
p.render();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue