File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/vs/workbench/services/editor/common Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ export class CustomEditorLabelService extends Disposable implements ICustomEdito
139
139
for ( const pattern of this . patterns ) {
140
140
let relevantPath : string ;
141
141
if ( root && ! pattern . isAbsolutePath ) {
142
- relevantPath = relativePath ?? getRelativePath ( resourceDirname ( root . uri ) , resource ) ?? resource . path ;
142
+ relevantPath = relativePath = relativePath ?? getRelativePath ( resourceDirname ( root . uri ) , resource ) ?? resource . path ;
143
143
} else {
144
144
relevantPath = resource . path ;
145
145
}
@@ -186,7 +186,7 @@ export class CustomEditorLabelService extends Disposable implements ICustomEdito
186
186
if ( n < 0 ) {
187
187
nth = Math . abs ( n ) - 1 ;
188
188
} else {
189
- nth = length - 1 - n - 1 ; // -1 for the filename, -1 for 0-based index
189
+ nth = length - n - 1 ;
190
190
}
191
191
192
192
const nthDir = pathFragments [ nth ] ;
You can’t perform that action at this time.
0 commit comments