mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 21:14:28 -08:00
fix: rerun code on add project folder
This commit is contained in:
@@ -752,11 +752,14 @@ const load_dir = (state, dir) => {
|
|||||||
collect_files(dir).map(f => [f.path, f.contents])
|
collect_files(dir).map(f => [f.path, f.contents])
|
||||||
)
|
)
|
||||||
|
|
||||||
return {
|
return rerun_code({
|
||||||
...state,
|
...state,
|
||||||
|
// remove cache
|
||||||
|
parse_result: null,
|
||||||
project_dir: dir,
|
project_dir: dir,
|
||||||
files: {...files, ...state.files}
|
files: {...files, ...state.files},
|
||||||
}
|
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
const create_file = (state, dir, current_module) => {
|
const create_file = (state, dir, current_module) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user