fix: fix vscode extension dev mode with flows

This commit is contained in:
Ruben Fiszel
2024-07-05 15:59:36 +02:00
parent cedc40d5d7
commit b30bde9a9b
4 changed files with 10 additions and 6 deletions
+7 -3
View File
@@ -124,8 +124,12 @@
}
async function loadUser() {
const user = await getUserExt(workspace!)
$userStore = user
try {
const user = await getUserExt(workspace!)
$userStore = user
} catch (e) {
sendUserToast(`Failed to load user ${e}`, true)
}
}
let darkModeToggle: DarkModeToggle
@@ -440,7 +444,7 @@
testStepStore,
saveDraft: () => {},
initialPath: '',
flowInputsStore: writable<FlowInput | undefined>(undefined)
flowInputsStore: writable<FlowInput>({})
})
$: updateFlow($flowStore)
@@ -396,7 +396,7 @@
testStepStore,
saveDraft,
initialPath,
flowInputsStore: writable<FlowInput | undefined>({})
flowInputsStore: writable<FlowInput>({})
})
async function loadSchedule() {
+1 -1
View File
@@ -32,5 +32,5 @@ export type FlowEditorContext = {
testStepStore: Writable<Record<string, any>>
saveDraft: () => void
initialPath: string
flowInputsStore: Writable<FlowInput | undefined>
flowInputsStore: Writable<FlowInput>
}
+1 -1
View File
@@ -96,7 +96,7 @@
testStepStore,
saveDraft: () => {},
initialPath: '',
flowInputsStore: writable<FlowInput | undefined>(undefined)
flowInputsStore: writable<FlowInput>({})
})
type LastEdit = {