fix(desktop): extra reqs
This commit is contained in:
parent
9f3942d7da
commit
24005e3fc8
2 changed files with 107 additions and 95 deletions
|
|
@ -72,6 +72,7 @@ function createGlobalSync() {
|
|||
|
||||
const children: Record<string, ReturnType<typeof createStore<State>>> = {}
|
||||
function child(directory: string) {
|
||||
if (!directory) console.error("No directory provided")
|
||||
if (!children[directory]) {
|
||||
setGlobalStore("children", directory, {
|
||||
project: "",
|
||||
|
|
@ -122,6 +123,7 @@ function createGlobalSync() {
|
|||
}
|
||||
|
||||
async function bootstrapInstance(directory: string) {
|
||||
if (!directory) return
|
||||
const [, setStore] = child(directory)
|
||||
const sdk = createOpencodeClient({
|
||||
baseUrl: globalSDK.url,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue