Skip to content

Commit 0357999

Browse files
committed
fix: extra : in windows path
1 parent 29d9ca3 commit 0357999

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/project/WorkingSetView.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,8 +1042,8 @@ define(function (require, exports, module) {
10421042
const lastSeg = dirSplit[dirSplit.length - 1];
10431043

10441044
if (Phoenix.isNativeApp && brackets.platform === "win") {
1045-
// Eg: C:\\long\path\to\fileDir - > C:\\...\to\fileDir
1046-
truncatedPath = `${rootDirName}:${sep}${sep}\u2026${sep}${secondLastSegment}${sep}${lastSeg}`;
1045+
// Eg: C:\long\path\to\fileDir - > C:\...\to\fileDir -- [rootDirName = c: here]
1046+
truncatedPath = `${rootDirName}${sep}\u2026${sep}${secondLastSegment}${sep}${lastSeg}`;
10471047
} else if (Phoenix.isNativeApp) {
10481048
// an absolute path of the form /abs/path/to/file in linux/mac desktop
10491049
// Eg: /application/path/to/fileDir - > /application/.../to/fileDir

test/spec/WorkingSetView-integ-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ define(function (require, exports, module) {
265265
expect(directoryText).toBe(` — /${root}/…/MainViewFactory-test-files/css`);
266266
} else {
267267
// windows
268-
expect(directoryText).toBe(` — ${root}:\\\\…\\MainViewFactory-test-files\\css`);
268+
expect(directoryText).toBe(` — ${root}\\…\\MainViewFactory-test-files\\css`);
269269
}
270270

271271
// the title should contain the full path

0 commit comments

Comments
 (0)