fix: lots of desktop stability, better e2e error logging (#18300)
This commit is contained in:
parent
7866dbcfcc
commit
d460614cd7
16 changed files with 457 additions and 313 deletions
|
|
@ -378,6 +378,7 @@ function createGlobalSync() {
|
|||
return globalStore.error
|
||||
},
|
||||
child: children.child,
|
||||
peek: children.peek,
|
||||
bootstrap,
|
||||
updateConfig,
|
||||
project: projectApi,
|
||||
|
|
|
|||
|
|
@ -226,6 +226,15 @@ export function createChildStoreManager(input: {
|
|||
return childStore
|
||||
}
|
||||
|
||||
function peek(directory: string, options: ChildOptions = {}) {
|
||||
const childStore = ensureChild(directory)
|
||||
const shouldBootstrap = options.bootstrap ?? true
|
||||
if (shouldBootstrap && childStore[0].status === "loading") {
|
||||
input.onBootstrap(directory)
|
||||
}
|
||||
return childStore
|
||||
}
|
||||
|
||||
function projectMeta(directory: string, patch: ProjectMeta) {
|
||||
const [store, setStore] = ensureChild(directory)
|
||||
const cached = metaCache.get(directory)
|
||||
|
|
@ -256,6 +265,7 @@ export function createChildStoreManager(input: {
|
|||
children,
|
||||
ensureChild,
|
||||
child,
|
||||
peek,
|
||||
projectMeta,
|
||||
projectIcon,
|
||||
mark,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue