mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-05 04:45:23 +01:00
Merge pull request #211244 from microsoft/benibenj/experimental-yak
Fix custom labels with absolute pattern
This commit is contained in:
@@ -177,6 +177,7 @@ export class CustomEditorLabelService extends Disposable implements ICustomEdito
|
||||
|
||||
private getNthDirname(path: string, filename: string, n: number): string | undefined {
|
||||
// grand-parent/parent/filename.ext1.ext2 -> [grand-parent, parent]
|
||||
path = path.startsWith('/') ? path.slice(1) : path;
|
||||
const pathFragments = path.split('/');
|
||||
|
||||
const length = pathFragments.length;
|
||||
|
||||
Reference in New Issue
Block a user