From 36b479195f0ae270ec14bba838150403dcadb44c Mon Sep 17 00:00:00 2001 From: Rich Chiodo false Date: Wed, 21 Aug 2024 11:31:25 -0700 Subject: [PATCH] Don't use untilidify --- src/client/common/platform/fs-paths.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/client/common/platform/fs-paths.ts b/src/client/common/platform/fs-paths.ts index 17df7507f7d9..524a8eb254af 100644 --- a/src/client/common/platform/fs-paths.ts +++ b/src/client/common/platform/fs-paths.ts @@ -4,11 +4,10 @@ import * as nodepath from 'path'; import { getSearchPathEnvVarNames } from '../utils/exec'; import * as fs from 'fs-extra'; +import * as os from 'os'; import { getOSType, OSType } from '../utils/platform'; import { IExecutables, IFileSystemPaths, IFileSystemPathUtils } from './types'; -const untildify = require('untildify'); - // The parts of node's 'path' module used by FileSystemPaths. interface INodePath { sep: string; @@ -120,7 +119,7 @@ export class FileSystemPathUtils implements IFileSystemPathUtils { } return new FileSystemPathUtils( // Use the current user's home directory. - untildify('~'), + os.homedir(), paths, Executables.withDefaults(), // Use the actual node "path" module.