mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
chore(desktop): add the blank lines the lint asks for around the picker start
This commit is contained in:
parent
4f66af20cf
commit
db93c1bdf2
2 changed files with 4 additions and 0 deletions
|
|
@ -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"),
|
||||
|
|
|
|||
|
|
@ -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([
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue