Skip to content

Commit

Permalink
Remove panel toc editor (#198)
Browse files Browse the repository at this point in the history
* Remove ToC Editor Panel

* Remove toc-trees-provider

TocTreesProvider and TocTreeItem were only used in tests

Move toggleTocTreesFilteringHandler to book-tocs

* Update test for toc updates

* Update book-tocs snapshot
  • Loading branch information
TylerZeroMaster authored Aug 29, 2024
1 parent 2cd8b16 commit de8a57e
Show file tree
Hide file tree
Showing 21 changed files with 173 additions and 2,323 deletions.
17 changes: 0 additions & 17 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"@types/vscode": "^1.89.0",
"@types/xmldom": "^0.1.31",
"json-stable-stringify": "^1.0.1",
"preact": "^10.6.5",
"react-sortable-tree": "^2.8.0",
"vscode-uri": "^3.0.3",
"xmldom": "^0.6.0",
Expand Down
24 changes: 24 additions & 0 deletions client/specs/__snapshots__/book-tocs.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,27 @@ exports[`Toc Provider returns tree items for children 4`] = `
"label": "title",
}
`;

exports[`filtering toggleTocTreesFilteringHandler 1`] = `
[
[
{
"children": [],
"label": "m1",
},
{
"expand": 3,
},
],
[
{
"children": [],
"label": "m2",
"type": "TocNodeKind.Page",
},
{
"expand": 3,
},
],
]
`;
Loading

0 comments on commit de8a57e

Please sign in to comment.