Rework how markdown server works with documents (#160948)

* Rework how markdown server works with documents

This rewrites how the markdown server works with documents. The goal is to better handle switching between in-memory versions of a doc (from `TextDocument`) and versions of the same doc on disk. From the markdown service's POV, there is only one type of document

As part of this, I've also adopted the newest markdown language service version

* Bump package-lock versions
This commit is contained in:
Matt Bierner
2022-09-15 00:27:02 -07:00
committed by GitHub
parent cfc0119755
commit 03ada8a3e8
5 changed files with 179 additions and 49 deletions

View File

@@ -79,7 +79,7 @@ export async function startServer(connection: Connection, serverConfig: {
});
registerCompletionsSupport(connection, documents, mdLs, configurationManager);
registerValidateSupport(connection, workspace, mdLs, configurationManager, serverConfig.logger);
registerValidateSupport(connection, workspace, documents, mdLs, configurationManager, serverConfig.logger);
return {
capabilities: {