Commit Graph

19 Commits

Author SHA1 Message Date
Matt Bierner
07144d22c4 Rename types in the markdown extension (#152905)
Renames in the markdown extension

This renames some types and splits up some files as part of an exploration towards a proper LSP. Changes:

- `SkinnyTextDocument` -> `ITextDocument`
- Moved `ITextDocument` to own file
- `MdWorkspaceContents` -> `IMdWorkspace`
2022-06-22 14:12:48 -07:00
Matt Bierner
d5a75f2ceb Add logging for MD language features (#152792)
This verbose logging will help track down inefficient calling patterns (such as recomputing stuff)
2022-06-21 14:18:36 -07:00
Matt Bierner
fa53aa6fec Cleanup pass for md extension (#152760)
Clean up names in md extension
2022-06-21 15:36:32 -04:00
Matt Bierner
dea813ff7c Add table of contents provider abstraction (#152504)
We currently re-compute the same table of contents for markdown files multiple times. This is because multiple language features all need table of contents

With this change, we introduce a new `TableOfContentsProvider` which maintains a cache of the table of contents per file. This provider is then passed into every caller that needs a toc
2022-06-17 18:20:02 +00:00
Matt Bierner
8adb42079b Fix slow positionAt impl for markdown references
- Use `vscode-languageserver-textdocument` instead of custom impl
- Reuse `InMemoryDocument`  across tests and working code
- Use `SkinnyTextDocument` in more places
- Fixes some test errors that seem to be caused by bad `InMemoryDocument` impl
2022-03-29 18:19:52 -07:00
Matt Bierner
338ae07ccb Initial work on md references provider
#146277
2022-03-29 18:19:52 -07:00
Matt Bierner
3ce5c78cb9 Extract workspaceContents to own file 2022-03-29 18:19:49 -07:00
Matt Bierner
22fb4e9de8 Better align language provider names and export styles
- Use named exports
- use `Md*` for providers
2022-03-29 13:35:48 -07:00
Matt Bierner
7736c87cb0 Move markdown preview files to own folder 2022-03-29 13:25:35 -07:00
Logan Ramos
656e1e6086 More deprecated assertion cleanup 2021-05-04 15:55:26 -04:00
Johannes Rieken
c110d84460 fix integration test 2019-02-08 18:03:56 +01:00
Matt Bierner
e325cce9bc Fixing markdown unit tests 2019-01-09 18:15:34 -08:00
Johannes Rieken
c8ac8ec300 debt - towards scheme-enforcement, #56108 2018-08-10 12:10:30 +02:00
Matt Bierner
7761157030 Update results on file create 2018-04-13 16:34:25 -07:00
Matt Bierner
79098619a5 Handle delete document 2018-04-13 16:34:25 -07:00
Matt Bierner
87f97ad853 Adding test for file change 2018-04-13 16:34:25 -07:00
Matt Bierner
8f877ceec6 Adding multi document workspace symbol provider test 2018-04-13 16:34:25 -07:00
Matt Bierner
6044fcacc8 Adding single file test 2018-04-13 16:34:25 -07:00
Matt Bierner
aa0d43ea2d Name cleanup 2018-04-13 16:34:25 -07:00