Skip to content

Commit ed0b5c6

Browse files
committed
💄
1 parent e89c96c commit ed0b5c6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/vs/workbench/services/editor/common/customEditorLabelService.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ export class CustomEditorLabelService extends Disposable implements ICustomEdito
139139
for (const pattern of this.patterns) {
140140
let relevantPath: string;
141141
if (root && !pattern.isAbsolutePath) {
142-
relevantPath = relativePath = relativePath ?? getRelativePath(resourceDirname(root.uri), resource) ?? resource.path;
142+
if (!relativePath) {
143+
relativePath = getRelativePath(resourceDirname(root.uri), resource) ?? resource.path;
144+
}
145+
relevantPath = relativePath;
143146
} else {
144147
relevantPath = resource.path;
145148
}

0 commit comments

Comments
 (0)