We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ce6111 commit 43a44e2Copy full SHA for 43a44e2
src/client/common/platform/pathUtils.ts
@@ -23,12 +23,11 @@ export class PathUtils implements IPathUtils {
23
}
24
public getDisplayName(pathValue: string, cwd?: string): string {
25
if (cwd && pathValue.startsWith(cwd)) {
26
- pathValue = `.${path.sep}${path.relative(cwd, pathValue)}`;
+ return `.${path.sep}${path.relative(cwd, pathValue)}`;
27
+ } else if (pathValue.startsWith(this.home)) {
28
+ return `~${path.sep}${path.relative(this.home, pathValue)}`;
29
+ } else {
30
+ return pathValue;
31
- if (pathValue.startsWith(this.home)) {
- pathValue = `~${path.sep}${path.relative(this.home, pathValue)}`;
- }
- return pathValue;
32
33
-
34
0 commit comments