MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / getHomeDir

Function getHomeDir

src/platform/common/platform/fs-paths.ts:12–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10let cachedHomeDir: Uri | undefined | null = null;
11
12function 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}
29export function getFilePath(file: Uri | undefined) {
30 const isWindows = getOSType() === OSType.Windows;
31 if (file) {

Callers 1

getDisplayPathFunction · 0.85

Calls 1

isWebFunction · 0.90

Tested by

no test coverage detected