(value: string, path: string)
| 29 | } |
| 30 | |
| 31 | function appendPathIfMissing(value: string, path: string) { |
| 32 | const trimmedPath = path.trim(); |
| 33 | if (!trimmedPath) { |
| 34 | return value; |
| 35 | } |
| 36 | const entries = parseWorkspacePathInput(value); |
| 37 | if (entries.includes(trimmedPath)) { |
| 38 | return value; |
| 39 | } |
| 40 | return [...entries, trimmedPath].join("\n"); |
| 41 | } |
| 42 | |
| 43 | function loadRecentRemoteWorkspacePaths(): string[] { |
| 44 | if (typeof window === "undefined") { |
no test coverage detected