Commit Graph

75 Commits

Author SHA1 Message Date
Matt Bierner
8023c8377b Pick up latest markdown language service (#181910) 2023-05-09 18:17:09 +02:00
Matt Bierner
ab7c32a5b5 Specify codeActionKinds (#180576)
Avoids extra calls and lets us show this info in the UI
2023-04-21 23:46:30 +02:00
Matt Bierner
d6f23042e3 Log uri as a string instead of as an object (#179721) 2023-04-11 14:19:12 -07:00
Matt Bierner
4126b98d1b Add working directory for md server publish (#179027) 2023-04-03 10:01:51 -07:00
Matt Bierner
15143c24a5 Fix md server build script compile and remove unused test part (#178635)
* Fix compile and remove unused test script

* Do full install so we pull in gulp
2023-03-29 16:58:39 -07:00
Matt Bierner
7095b11615 Set cwd for running md server build (#178629)
Should make pipeline much faster
2023-03-29 15:22:40 -07:00
Matt Bierner
af5ef24b52 Use yarn instead in md server build script (#178622)
Also removes unused API extractor script
2023-03-29 14:46:38 -07:00
Matt Bierner
5f328ba75d Markdown language server 0.3.0 (#178512)
0.3.0 for markdown language server
2023-03-28 20:14:46 +02:00
Matt Bierner
d490dfe9f7 Disable MD server builds on changes (#178464)
We will manually trigger builds instead
2023-03-28 09:00:10 +02:00
Matt Bierner
143d94ae0d Add publish pipeline for md server (#177387) 2023-03-16 16:22:21 -07:00
Matt Bierner
da15b03a10 Add setting to control markdown LS log level (#176472) 2023-03-08 08:00:34 +01:00
Matt Bierner
41e0b50a6d Pick up latest markdown language service (#176425) 2023-03-07 20:38:37 +01:00
Matt Bierner
b980b86066 Pick up latest markdown language service (#174881)
For #174005
2023-02-22 15:14:23 +01:00
Matt Bierner
784bbdab8f Allowing configuring if markdown inserts a .md when completing paths to markdown files (#174882)
Fixes #174005
2023-02-21 08:07:31 +01:00
Matt Bierner
34c620efbe Hook up new markdown workspace header suggestion setting (#174004)
Fixes #172977

Also fixes the settingsTree matching settings ids too eagerly
2023-02-10 09:09:00 +01:00
Matt Bierner
c35c98fc00 Pick up latest markdown language server (#173234)
For #172977
2023-02-03 06:46:30 +01:00
Matt Bierner
c18f80a2d4 Pass translations down to Markdown Language Server (#172884)
Fixes #172060
2023-01-31 06:29:41 +01:00
Matt Bierner
10ffbae8ae Use more restrictive lib for markdown language server (#172873) 2023-01-30 16:52:58 -08:00
Matt Bierner
d62fb120a4 Pick up latest markdown language server (#167869) 2022-12-05 21:13:24 +01:00
Matt Bierner
3b29d21a83 Dynamically register markdown completions and document highlights (#167451)
Fixes #165920
2022-11-28 20:56:55 +00:00
Matt Bierner
edccbd1307 Pick up latest markdown language server (#166404)
Also removes some duplicated files
2022-11-15 18:27:22 -08:00
Matt Bierner
04ef3dad8f Adopt @vscode/l10n for markdown language server (#165880) 2022-11-15 22:56:12 +01:00
Matt Bierner
ca15dea96b Pick up latest dompurify and typings for vscode-markdown-languageservice (#166062)
Pick up latest typings from vscode-markdown-languageservice
2022-11-10 21:58:16 -08:00
Matt Bierner
4bf630f00e Pick up latest markdown language service (#165093) 2022-10-31 19:52:21 -07:00
Matt Bierner
3e407526a1 Pick up latest markdown LS (#164945)
Picks up https://github.com/microsoft/vscode-markdown-languageservice/pull/84
2022-10-29 11:40:56 -07:00
Matt Bierner
7cb1b9d9f0 Fix bugs with close of markdown docs (#164942)
There are two bugs here:

- Something in the lsp is converting a value from `undefined` to `null`. To fix this, I've updated us just to check for falsy values instead
- The `hasInMemoryDoc` implementation was incorrect. It needs to verify that the value of `this.inMemoryDoc` is not null/undefined
2022-10-29 02:08:21 +02:00
Matt Bierner
3544aabd5a Fix markdown document deleting (#164829)
Fixes #164562

My previous fix was incorrect as it checked if the document existed by still consulting our `_documentCache`. When we are deleting/renaming an opened md document, it should pretty much always exist in our cache

The fix is to instead treat `this.documents` and the file system as the source of truth when determining if the doc should be deleted or not
2022-10-27 21:49:05 +02:00
Matt Bierner
d1af68711d Pick up latest markdown LS (#164763)
Includes a few more fixes for link update on rename
2022-10-27 00:39:58 +02:00
Matt Bierner
5f87632829 Fix markdown server not updating documents properly on folder rename (#164752)
Fixes #164562
2022-10-26 14:48:20 -07:00
Matt Bierner
a887d72e8d Pick up latest markdown language service (#164655) 2022-10-25 16:46:53 -07:00
Matt Bierner
3ca4fca56e Pick up latest markdown language service (#164625)
This failed yesterday due to a cache issue in dev ops. We need this version for testing
2022-10-25 10:52:57 -07:00
Matt Bierner
586f252740 Revert "Pick up markdown language service update (#164524)" (#164533)
This reverts commit ab3926ab48.
2022-10-24 19:09:08 -07:00
Matt Bierner
ab3926ab48 Pick up markdown language service update (#164524)
Picking up one more small update before endgame
2022-10-24 16:53:17 -07:00
Matt Bierner
9f5d3eb135 Pick up latest markdown language service and clean up server package (#164516)
- Picks up newest markdown language service
- Excludes some files from server publish
- Delete unused file
- Update readme
- Align server version with LS version
2022-10-24 15:58:45 -07:00
Matt Bierner
b11bb04298 Add optional markdown occurrences highlighting (#164292)
Fixes #164290
2022-10-21 14:19:50 -07:00
Matt Bierner
3b255af0cb Pick up latest vscode-markdown-languageservice (#163681) 2022-10-14 11:46:24 -07:00
Matt Bierner
d47ae7a2e7 Pick up latest markdown language service version (#162777)
Fixes #162776
Fixes #162775
2022-10-05 15:08:51 -07:00
Matt Bierner
cbb0a982fd Pick up final markdown language service 0.1 release (#162256)
Just pulling in the stable release
2022-09-28 14:02:26 -07:00
Matt Bierner
5296b0faf3 Add explicit "inherit" setting for fragments links (#162231)
Fixes #162129
2022-09-28 14:08:03 -04:00
Tyler James Leonhardt
29e985eca0 rev vscode-nls to version that doesn't ask for vscode-nls-web-data (#161819)
ref #161297
2022-09-26 11:10:54 -07:00
Matt Bierner
82c1bf86bf Show better error when rename fails in md (#161525)
* Show better error when rename fails in md

* Pick up latest MDLanguage service
2022-09-22 16:27:25 -07:00
Matt Bierner
17bb582b85 Finalize markdown diagnostics (#161427)
Fixes #146303

This moves the markdown diagnostic support out of `experimental` and to an official feature (however it remains off by default)
2022-09-21 12:20:25 -07:00
Matt Bierner
333754f29b Better handle moves of multiple markdown links (#161354)
This makes the markdown language service handle moving/renaming multiple files instead of making multiple calls into the language service
2022-09-20 21:53:58 -07:00
Matt Bierner
4c9c3f628d Pick up latest markdown language service (#161142) 2022-09-16 20:52:16 -04:00
Matt Bierner
03ada8a3e8 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
2022-09-15 09:27:02 +02:00
Matt Bierner
fa1fee3b21 Pick up latest Markdown language service (#160831) 2022-09-14 09:20:52 -07:00
Matt Bierner
2cf7468289 Fix markdown server deleting documents on close if they still exist on disk (#160859) 2022-09-14 09:16:39 -07:00
Matt Bierner
5d5ea15a65 Allow passing in custom workspace/parser to markdown server (#160429)
For #159805

This splits the markdown server into two main functions:

- `startVsCodeServer` which assumes the client can implement all the functionality of VS Code. It is not specific to VS Code however, the client just need to implement the custom messages that VS Code does

- `startServer` which lets you pass in your own implementation of the parser and workspace. A consumer of the server can then use this to have their own custom server implementation, which might use normal node apis to read files
2022-09-08 11:35:42 -07:00
Matt Bierner
2d27f8db6a Use MD LS for resolving all document links (#160238)
* Use MD LS for resolving all document links

This switches the markdown extension to use the markdown language service when resolving the link. This lets us delete a lot of code that was duplicated between the extension and the LS

* Pick up new ls version
2022-09-07 20:55:14 -07:00
Matt Bierner
21337aed3f Pick up newest markdown language service (#159619)
This brings support for code actions and source actions, along with some bug fixes

Also fixes `getAllMarkdownDocuments` to prefer open documents instead of those on disk
2022-08-31 09:20:41 +02:00