-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
124 lines (124 loc) · 3.15 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
{
"name": "markdoc-language-support",
"displayName": "Markdoc language support",
"private": true,
"icon": "logo.png",
"preview": true,
"author": "Ryan Paul",
"publisher": "stripe",
"license": "MIT",
"version": "0.0.13",
"description": "A Markdoc language server and Visual Studio Code extension",
"repository": {
"type": "git",
"url": "https://github.com/markdoc/language-server.git"
},
"main": "./dist/client/index.js",
"bin": {
"markdoc-ls": "dist/server/wrapper.js"
},
"scripts": {
"build": "node build.mjs",
"build:watch": "node build.mjs --watch",
"build:types": "tsc --emitDeclarationOnly --outDir dist",
"build:extension": "vsce package --out dist/markdoc.vsix",
"test": "node -r esbuild-register --test server/**/*.test.ts",
"test:watch": "node -r esbuild-register --watch --test server/**/*.test.ts"
},
"engines": {
"vscode": "^1.63.0"
},
"devDependencies": {
"@types/node": "^18.11.18",
"esbuild": "0.17.17",
"esbuild-register": "^3.4.2",
"typescript": "^4.9.3",
"@vscode/vsce": "^2.19.0"
},
"activationEvents": [],
"contributes": {
"configuration": {
"title": "Markdoc Language Server",
"properties": {
"markdoc.config.path": {
"type": "string",
"scope": "resource",
"default": "markdoc.config.json",
"description": "Path to Markdoc configuration"
}
}
},
"views": {
"explorer": [
{
"id": "markdocPartials",
"name": "Partials",
"when": "markdoc.active"
}
]
},
"commands": [
{
"command": "markdoc.newFileFromTemplate",
"title": "Markdoc file from template"
},
{
"command": "markdoc.controlService",
"title": "Control the Markdoc language server"
},
{
"command": "markdoc.preview",
"title": "Display a rendered preview of Markdoc content",
"icon": "$(ports-open-browser-icon)"
}
],
"menus": {
"file/newFile": [
{
"command": "markdoc.newFileFromTemplate",
"when": "markdoc.enabled"
}
],
"editor/title": [
{
"command": "markdoc.preview",
"when": "resourceLangId == markdoc && markdoc.enabled && markdoc.canPreview",
"group": "navigation"
}
]
},
"languages": [
{
"id": "markdoc",
"aliases": [
"Markdoc",
"markdoc"
],
"extensions": [
".markdoc",
".markdoc.md",
".mdoc"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "markdoc",
"scopeName": "text.html.markdown.markdoc",
"path": "./syntaxes/markdoc.tmLanguage.json"
},
{
"injectTo": [
"text.html.markdown",
"source.markup.markdoc"
],
"scopeName": "text.html.markdown.markdoc.injection",
"path": "./syntaxes/markdoc.markdown.tmLanguage.json",
"embeddedLanguages": {
"meta.embedded.inline.json": "json"
}
}
]
}
}