Merge pull request #522 from wang-kaopu/fix/517-client-ssh-open

fix(editor): open SSH remote editor links on the client
This commit is contained in:
Atlas Zeng
2026-09-03 10:54:34 +08:00
committed by GitHub
4 changed files with 156 additions and 11 deletions
+5 -4
View File
@@ -192,10 +192,11 @@ export function EditorHost(props: {
}
/** The context menu's "open with" action: reveal the path in the OS file
* manager, or hand the target's URL (a local `file` URL, or the SSH-remote
* form for VSCode-family editors in remote mode) to the host's external
* opener. Failures are logged only — a missing handler is the OS's
* dialog, not a sidebar error. */
* manager, or hand the target's URL to its opener — local `file` URLs go
* to the host's external opener, while the SSH-remote form for
* VSCode-family editors launches on the browser/client machine (see
* api.openExternal). Failures are logged only — a missing handler is the
* OS's/browser's dialog, not a sidebar error. */
const openWith = (targetId: string, absolute: string): void => {
const target = openWithTargets.find(item => item.id === targetId)
if (target === undefined) return