{ if (wsProvider?.shouldConnect) { disableCollaboration() } else { setCollaborationMode() } }} collabLive={wsProvider?.shouldConnect} {collabMode} {validCode} iconOnly={width < EDITOR_BAR_WIDTH_THRESHOLD} on:collabPopup={() => (showCollabPopup = true)} {editor} {lang} {websocketAlive} collabUsers={peers} kind={asKind(kind)} {template} {diffEditor} {args} /> {#if !noSyncFromGithub}
Use VScode
{/if}
{#key lang}
{ inferSchema(e.detail) }} cmdEnterAction={async () => { await inferSchema(code) runTest() }} formatAction={async () => { await inferSchema(code) try { localStorage.setItem(path ?? 'last_save', code) } catch (e) { console.error('Could not save last_save to local storage', e) } dispatch('format') }} class="flex flex-1 h-full !overflow-visible" lang={scriptLangToEditorLang(lang)} deno={lang == 'deno'} automaticLayout={true} {fixedOverflowWidgets} {args} />
{/key}
{#if testIsLoading}
Cancel
{:else}
{ runTest() }} btnClasses="w-full" size="xs" startIcon={{ icon: Play, classes: 'animate-none' }} > {#if testIsLoading} Running {:else} Test
{getModifierKey()}
⏎
{/if}
{/if}