Skip to content

Commit

Permalink
Don't use untilidify
Browse files Browse the repository at this point in the history
  • Loading branch information
rchiodo committed Aug 21, 2024
1 parent f0a2e4b commit 36b4791
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/client/common/platform/fs-paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 36b4791

Please sign in to comment.