()
| 10 | let cachedHomeDir: Uri | undefined | null = null; |
| 11 | |
| 12 | function getHomeDir() { |
| 13 | if (cachedHomeDir !== null) { |
| 14 | return cachedHomeDir; |
| 15 | } |
| 16 | |
| 17 | if (isWeb()) { |
| 18 | cachedHomeDir = undefined; |
| 19 | |
| 20 | return undefined; |
| 21 | } |
| 22 | |
| 23 | // In web contexts, return undefined |
| 24 | // Node.js-specific logic is in fs-paths.node.ts |
| 25 | cachedHomeDir = undefined; |
| 26 | |
| 27 | return undefined; |
| 28 | } |
| 29 | export function getFilePath(file: Uri | undefined) { |
| 30 | const isWindows = getOSType() === OSType.Windows; |
| 31 | if (file) { |
no test coverage detected