Skip to content

Commit

Permalink
Update to remark-language-server 3 (#130)
Browse files Browse the repository at this point in the history
This also includes related dependencies to provide compatibility with
unified 11. This also contains a new setting and related
documentation changes.
  • Loading branch information
remcohaszing authored Apr 16, 2024
1 parent a1f6909 commit 00695da
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 13 deletions.
16 changes: 13 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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/vscode-remark#configuration-file) is found."
}
}
},
"jsonValidation": [
{
"fileMatch": [
Expand Down
50 changes: 40 additions & 10 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,18 @@ 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)
* [Configuration file](#configuration-file)
* [Settings](#settings)
* [Formatting](#formatting)
* [Plugins](#plugins)
* [Compatibility](#compatibility)
* [Security](#security)
* [Contribute](#contribute)
* [License](#license)

## What is this?

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 00695da

Please sign in to comment.