diff --git a/frontend/src/lib/components/ScriptEditor.svelte b/frontend/src/lib/components/ScriptEditor.svelte index 3b20a75aab..9257484ed6 100644 --- a/frontend/src/lib/components/ScriptEditor.svelte +++ b/frontend/src/lib/components/ScriptEditor.svelte @@ -4,7 +4,13 @@ import type { Schema, SupportedLanguage } from '$lib/common' import { type CompletedJob, type Job, JobService, type Preview, type ScriptLang } from '$lib/gen' import { enterpriseLicense, userStore, workspaceStore } from '$lib/stores' - import { copyToClipboard, emptySchema, getLocalSetting, sendUserToast, storeLocalSetting } from '$lib/utils' + import { + copyToClipboard, + emptySchema, + getLocalSetting, + sendUserToast, + storeLocalSetting + } from '$lib/utils' import Editor from './Editor.svelte' import { inferArgs, inferAssets, inferAnsibleExecutionMode } from '$lib/infer' import { Pane, Splitpanes } from 'svelte-splitpanes' @@ -249,9 +255,7 @@ let breakpointDecorations: string[] = $state([]) let currentLineDecoration: string[] = $state([]) // Get the DAP server URL based on language - const dapServerUrl = $derived( - getDebugServerUrl((lang || 'python3') as DebugLanguage) - ) + const dapServerUrl = $derived(getDebugServerUrl((lang || 'python3') as DebugLanguage)) const debugFilePath = $derived(`/tmp/script${getDebugFileExtension(lang || '')}`) let dapClient = $state | null>(null) const isDebuggableScript = $derived(isDebuggable(lang || '')) @@ -827,7 +831,10 @@ function collabUrl() { let url = new URL(window.location.toString().split('#')[0]) url.search = '' - return `${url}?collab=1&workspace=${encodeURIComponent($workspaceStore ?? '')}&lang=${encodeURIComponent(lang ?? '')}` + (edit ? '' : `&path=${path}`) + return ( + `${url}?collab=1&workspace=${encodeURIComponent($workspaceStore ?? '')}&lang=${encodeURIComponent(lang ?? '')}` + + (edit ? '' : `&path=${path}`) + ) } let showTabs = $derived(hasPreprocessor) @@ -949,12 +956,17 @@
-
+
-

The Debug feature is currently in beta. You may encounter unexpected behavior or limitations.

+

The Debug feature is currently in beta. You may encounter unexpected + behavior or limitations.

By continuing, you acknowledge that this feature is experimental.

@@ -1098,41 +1110,36 @@ />
{#if !(debugMode && isDebuggableScript)} - {#if testIsLoading} - - {:else} - {@const disableTriggerButton = customUi?.previewPanel?.disableTriggerButton === true} -
+
+ {#if testIsLoading} + + {:else} + {@const disableTriggerButton = + customUi?.previewPanel?.disableTriggerButton === true} {#if !disableTriggerButton} {/if} -
- {/if} + {/if} +
{/if}