docs(open-with): 同步 SSH 链接客户端打开后的注释与设计偏差记录

This commit is contained in:
Menghuan1918
2026-09-03 10:50:26 +08:00
parent ed2ccc829e
commit 5dbbde61ce
2 changed files with 9 additions and 5 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