diff options
| author | Adam <[email protected]> | 2026-02-05 13:55:49 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-02-05 19:55:49 +0000 |
| commit | b738d88ec4c49efdf37ecf09058e70f1c3574b6b (patch) | |
| tree | 524219619c6e5ce0159679073183e2c3930c4ce6 /packages/app/src/context | |
| parent | 83646e0366c47a3bccb5135d40628176a6776f33 (diff) | |
| download | opencode-b738d88ec4c49efdf37ecf09058e70f1c3574b6b.tar.gz opencode-b738d88ec4c49efdf37ecf09058e70f1c3574b6b.zip | |
feat(app): open in <app> button (#12322)
Diffstat (limited to 'packages/app/src/context')
| -rw-r--r-- | packages/app/src/context/platform.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/app/src/context/platform.tsx b/packages/app/src/context/platform.tsx index 591bd9c9f..f5d20ff8e 100644 --- a/packages/app/src/context/platform.tsx +++ b/packages/app/src/context/platform.tsx @@ -15,6 +15,9 @@ export type Platform = { /** Open a URL in the default browser */ openLink(url: string): void + /** Open a local path in a local app (desktop only) */ + openPath?(path: string, app?: string): Promise<void> + /** Restart the app */ restart(): Promise<void> |
