{#snippet menuItems()}
{#if options.length > 0}
{$i18n.t('Recently Used')}
{#if historyError}
{historyError}
{/if}
{#each options as path} {@const selected = !!directory && normalize(directory) === path}
{/each}
{/if}
{/snippet} {#if inMenu} {#if tab === ''}
{:else if tab === 'directory'}
{@render menuItems()}
{/if} {:else}
{ search = ''; if (open) void refreshRecentFolders(); }} >
{@render menuItems()}
{/if} {#if showPicker}
{$i18n.t('Choose working directory')}
{/if}