()
| 190 | } |
| 191 | |
| 192 | function 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 |
no test coverage detected