Take document as parameter instead document components

This commit is contained in:
Matt Bierner
2018-12-27 19:28:57 -06:00
parent df5a295484
commit 7086fb76ec
4 changed files with 14 additions and 12 deletions

View File

@@ -49,7 +49,7 @@ export class TableOfContentsProvider {
private async buildToc(document: SkinnyTextDocument): Promise<TocEntry[]> {
const toc: TocEntry[] = [];
const tokens = await this.engine.parse(document.uri, document.getText());
const tokens = await this.engine.parse(document);
const slugCount = new Map<string, number>();