(source: BrowserWindow, target: BrowserWindow)
| 1437 | } |
| 1438 | |
| 1439 | function inheritWindowWorkspaceSession(source: BrowserWindow, target: BrowserWindow): void { |
| 1440 | const vault = windowVaults.vaultForWindow(source.id) |
| 1441 | const mode = windowVaults.modeForWindow(source.id) |
| 1442 | if (!vault || !mode) return |
| 1443 | if (mode === 'remote') { |
| 1444 | windowVaults.setRemoteVault(target.id, vault) |
| 1445 | } else { |
| 1446 | windowVaults.setLocalVault(target.id, vault) |
| 1447 | } |
| 1448 | } |
| 1449 | |
| 1450 | function noteTitleFromRelPath(relPath: string): string { |
| 1451 | const base = path.posix.basename(relPath) |
no test coverage detected