volar-service-markdown 0.0.13 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023-present Remco Haszing
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,25 @@
1
+ # volar-service-markdown
2
+
3
+ Volar plugin for [`vscode-markdown-languageservice`](https://github.com/microsoft/vscode-markdown-languageservice).
4
+
5
+ ## Installation
6
+
7
+ ```sh
8
+ npm install volar-service-markdown
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ `volar.config.js`
14
+
15
+ ```js
16
+ module.exports = {
17
+ services: [
18
+ require('volar-service-markdown').create(),
19
+ ],
20
+ };
21
+ ```
22
+
23
+ ## License
24
+
25
+ [MIT](LICENSE) © [Remco Haszing](https://github.com/remcohaszing)
package/out/index.d.ts CHANGED
@@ -5,3 +5,4 @@ export interface Provide {
5
5
  }
6
6
  export declare function create(): Service<Provide>;
7
7
  export default create;
8
+ //# sourceMappingURL=index.d.ts.map
package/out/index.js CHANGED
@@ -164,7 +164,7 @@ function create() {
164
164
  return ls.getCodeActions(document, range, context, token);
165
165
  }
166
166
  },
167
- async provideCompletionItems(document, position, context, token) {
167
+ async provideCompletionItems(document, position, _context, token) {
168
168
  if (prepare(document)) {
169
169
  const items = await ls.getCompletionItems(document, position, {}, token);
170
170
  return {
package/package.json CHANGED
@@ -1,6 +1,13 @@
1
1
  {
2
2
  "name": "volar-service-markdown",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
+ "description": "Integrate vscode-markdown-languageservice into Volar",
5
+ "homepage": "https://github.com/volarjs/services/tree/master/packages/markdown",
6
+ "bugs": "https://github.com/volarjs/services/issues",
7
+ "sideEffects": false,
8
+ "keywords": [
9
+ "volar-service"
10
+ ],
4
11
  "main": "out/index.js",
5
12
  "license": "MIT",
6
13
  "files": [
@@ -12,15 +19,20 @@
12
19
  "url": "https://github.com/volarjs/services.git",
13
20
  "directory": "packages/markdown"
14
21
  },
22
+ "author": {
23
+ "name": "Remco Haszing",
24
+ "email": "remcohaszing@gmail.com",
25
+ "url": "https://github.com/remcohaszing"
26
+ },
15
27
  "dependencies": {
16
- "markdown-it": "^13.0.1",
17
- "vscode-jsonrpc": "^8.1.0",
18
- "vscode-markdown-languageservice": "~0.4.0-alpha.5",
19
- "vscode-uri": "^3.0.7"
28
+ "markdown-it": "^13.0.2",
29
+ "vscode-jsonrpc": "^8.2.0",
30
+ "vscode-markdown-languageservice": "~0.4.0-alpha.7",
31
+ "vscode-uri": "^3.0.8"
20
32
  },
21
33
  "devDependencies": {
22
- "@types/markdown-it": "^13.0.1",
23
- "vscode-languageserver-textdocument": "^1.0.8"
34
+ "@types/markdown-it": "^13.0.4",
35
+ "vscode-languageserver-textdocument": "^1.0.11"
24
36
  },
25
37
  "peerDependencies": {
26
38
  "@volar/language-service": "~1.10.0"
@@ -29,5 +41,6 @@
29
41
  "@volar/language-service": {
30
42
  "optional": true
31
43
  }
32
- }
44
+ },
45
+ "gitHead": "3a59378715a959b433ca65700d2515d708469388"
33
46
  }