From 68197267858b766d9414e31a36b5c472ec27f058 Mon Sep 17 00:00:00 2001 From: Remco Haszing Date: Tue, 16 Apr 2024 16:38:22 +0200 Subject: [PATCH 1/3] Update to remark-language-server 3 This also includes related dependencies to provide compatibility with unified 11. --- package.json | 6 +++--- readme.md | 20 ++++++++++---------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index b2a6d85..b302fac 100644 --- a/package.json +++ b/package.json @@ -40,9 +40,9 @@ "esbuild": "^0.20.0", "ovsx": "^0.9.0", "prettier": "^3.0.0", - "remark-cli": "^11.0.0", - "remark-language-server": "^2.0.0", - "remark-preset-wooorm": "^9.0.0", + "remark-cli": "^12.0.0", + "remark-language-server": "^3.0.0", + "remark-preset-wooorm": "^10.0.0", "typescript": "^5.0.0", "vscode-languageclient": "^9.0.0", "xo": "^0.58.0" diff --git a/readme.md b/readme.md index fb67f19..9bec0a4 100644 --- a/readme.md +++ b/readme.md @@ -10,16 +10,16 @@ Visual Studio Code extension to format and lint markdown files with remark. ## Contents -* [What is this?](#what-is-this) -* [When should I use this?](#when-should-i-use-this) -* [Install](#install) -* [Use](#use) -* [Formatting](#formatting) -* [Plugins](#plugins) -* [Compatibility](#compatibility) -* [Security](#security) -* [Contribute](#contribute) -* [License](#license) +* [What is this?](#what-is-this) +* [When should I use this?](#when-should-i-use-this) +* [Install](#install) +* [Use](#use) +* [Formatting](#formatting) +* [Plugins](#plugins) +* [Compatibility](#compatibility) +* [Security](#security) +* [Contribute](#contribute) +* [License](#license) ## What is this? From 1113b4ef06f035dc1105791bd3164633bb0bc2c6 Mon Sep 17 00:00:00 2001 From: Remco Haszing Date: Tue, 16 Apr 2024 17:10:29 +0200 Subject: [PATCH 2/3] Update settings and documentation `remark-language-server` 3 adds a new setting. --- package.json | 10 ++++++++++ readme.md | 30 ++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/package.json b/package.json index b302fac..cd03231 100644 --- a/package.json +++ b/package.json @@ -102,6 +102,16 @@ } }, "contributes": { + "configuration": { + "title": "remark", + "properties": { + "remark.requireConfig": { + "type": "boolean", + "default": false, + "markdownDescription": "If true, only perform actions if a [configuration file](https://github.com/remarkjs/remark-language-server#configuration-file) is found." + } + } + }, "jsonValidation": [ { "fileMatch": [ diff --git a/readme.md b/readme.md index 9bec0a4..2b8fd3d 100644 --- a/readme.md +++ b/readme.md @@ -14,6 +14,8 @@ Visual Studio Code extension to format and lint markdown files with remark. * [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) +* [Configuration file](#configuration-file) +* [Settings](#settings) * [Formatting](#formatting) * [Plugins](#plugins) * [Compatibility](#compatibility) @@ -72,6 +74,32 @@ Here’s an example that should produce problems you can use to verify: 1) Hello, _Jupiter_ and *Neptune*! ``` +## Configuration file + +`remark-language-server` uses the same configuration files as +[`remark-cli`][remark-cli]. +These files are: + +* `.remarkrc` +* `.remarkrc.cjs` +* `.remarkrc.js` +* `.remarkrc.json` +* `.remarkrc.mjs` +* `.remarkrc.yaml` +* `.remarkrc.yml` +* `package.json` + +Language clients should notify the language server if these files change. +They are looked up starting at the folder where the checked markdown file +exists. + +## Settings + +This extension supports the following settings: + +* `remark.requireConfig` (`boolean`, default: `false`) — If true, only perform + actions if a [configuration file][configuration-file] is found. + ## Formatting This extension can format markdown files. @@ -141,6 +169,8 @@ abide by its terms. [build]: https://github.com/remarkjs/vscode-remark/actions +[configuration-file]: #configuration-file + [downloads-badge]: https://img.shields.io/visual-studio-marketplace/d/unifiedjs.vscode-remark [chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg From 13492d45e5121832889d0d117f22a7ed33394bc0 Mon Sep 17 00:00:00 2001 From: Remco Haszing Date: Tue, 16 Apr 2024 17:22:09 +0200 Subject: [PATCH 3/3] Update link in the configuration schema --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cd03231..2079fbd 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "remark.requireConfig": { "type": "boolean", "default": false, - "markdownDescription": "If true, only perform actions if a [configuration file](https://github.com/remarkjs/remark-language-server#configuration-file) is found." + "markdownDescription": "If true, only perform actions if a [configuration file](https://github.com/remarkjs/vscode-remark#configuration-file) is found." } } },