mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
fix toc path for windows (#6772)
This commit is contained in:
@@ -45,8 +45,9 @@ export class BookTreeViewProvider implements vscode.TreeDataProvider<BookTreeIte
|
|||||||
maxDepth = undefined;
|
maxDepth = undefined;
|
||||||
}
|
}
|
||||||
let workspacePaths: string[] = workspaceFolders.map(a => a.uri.fsPath);
|
let workspacePaths: string[] = workspaceFolders.map(a => a.uri.fsPath);
|
||||||
for (let path of workspacePaths) {
|
for (let workspacePath of workspacePaths) {
|
||||||
let tableOfContentPaths = await glob([path + '/**/_data/toc.yml'], { deep: maxDepth });
|
let p = path.join(workspacePath, '**', '_data', 'toc.yml').replace(/\\/g, '/');
|
||||||
|
let tableOfContentPaths = await glob(p, { deep: maxDepth });
|
||||||
this._tableOfContentPaths = this._tableOfContentPaths.concat(tableOfContentPaths);
|
this._tableOfContentPaths = this._tableOfContentPaths.concat(tableOfContentPaths);
|
||||||
}
|
}
|
||||||
let bookOpened: boolean = this._tableOfContentPaths.length > 0;
|
let bookOpened: boolean = this._tableOfContentPaths.length > 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user