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 e89c96c commit ed0b5c6Copy full SHA for ed0b5c6
src/vs/workbench/services/editor/common/customEditorLabelService.ts
@@ -139,7 +139,10 @@ export class CustomEditorLabelService extends Disposable implements ICustomEdito
139
for (const pattern of this.patterns) {
140
let relevantPath: string;
141
if (root && !pattern.isAbsolutePath) {
142
- relevantPath = relativePath = relativePath ?? getRelativePath(resourceDirname(root.uri), resource) ?? resource.path;
+ if (!relativePath) {
143
+ relativePath = getRelativePath(resourceDirname(root.uri), resource) ?? resource.path;
144
+ }
145
+ relevantPath = relativePath;
146
} else {
147
relevantPath = resource.path;
148
}
0 commit comments