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

Function tryGetHomePath

src/extension.node.ts:192–201  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

190}
191
192function tryGetHomePath() {
193 try {
194 const homeDir = escapeRegExp(getUserHomeDir().fsPath);
195 return new RegExp(homeDir, 'ig');
196 } catch (e) {
197 logger.info(
198 `jupyter extension failed to get home directory path with ${e}\n home Path will not be obfuscated in local logs`
199 );
200 }
201}
202
203/////////////////////////////
204// old activation code

Callers 1

activateFunction · 0.85

Calls 3

getUserHomeDirFunction · 0.90
escapeRegExpFunction · 0.85
infoMethod · 0.65

Tested by

no test coverage detected