chore(desktop): add the blank lines the lint asks for around the picker start

This commit is contained in:
Luke Parker 2026-11-16 16:24:15 +10:00
parent 4f66af20cf
commit db93c1bdf2
2 changed files with 4 additions and 0 deletions

View file

@ -72,6 +72,7 @@ function make(
return {
openDirectoryPicker: Effect.fn("DesktopFiles.openDirectoryPicker")(function* (options?: DirectoryPickerOptions) {
const defaultPath = yield* start(options?.defaultPath)
const result = yield* Effect.promise(() =>
dialog.showOpenDialog({
properties: ["openDirectory", ...(options?.multiple ? ["multiSelections" as const] : []), "createDirectory"],
@ -91,6 +92,7 @@ function make(
return yield* Effect.gen(function* () {
const defaultPath = yield* start(options?.defaultPath)
const result = yield* Effect.promise(() =>
dialog.showOpenDialog({
properties: ["openFile", ...(options?.multiple ? ["multiSelections" as const] : [])],
@ -122,6 +124,7 @@ function make(
releasePickedFiles: pickedFiles.release,
saveFile: Effect.fn("DesktopFiles.saveFile")(function* (options: SaveFilePickerOptions, content: string) {
const defaultPath = yield* start(options?.defaultPath, true)
const result = yield* Effect.promise(() =>
dialog.showSaveDialog({
title: options?.title ?? nativeT("desktop.dialog.saveFile"),

View file

@ -3,6 +3,7 @@ import path from "node:path"
import { pickerStarts } from "./picker-start"
const home = path.resolve("home", "me")
const project = path.resolve("work", "project")
test.each([