mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Merge pull request #211244 from microsoft/benibenj/experimental-yak
Fix custom labels with absolute pattern
This commit is contained in:
commit
f3765fb6eb
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue