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 6c6d929 commit 5ef8083Copy full SHA for 5ef8083
src/vs/workbench/services/editor/common/customEditorLabelService.ts
@@ -116,7 +116,7 @@ export class CustomEditorLabelService extends Disposable implements ICustomEdito
116
}
117
118
getName(resource: URI): string | undefined {
119
- if (!this.enabled) {
+ if (!this.enabled || this.patterns.length === 0) {
120
return undefined;
121
122
@@ -132,10 +132,6 @@ export class CustomEditorLabelService extends Disposable implements ICustomEdito
132
133
134
private applyPatterns(resource: URI): string | undefined {
135
- if (this.patterns.length === 0) {
136
- return undefined;
137
- }
138
-
139
const root = this.workspaceContextService.getWorkspaceFolder(resource);
140
let relativePath: string | undefined;
141
0 commit comments