Skip to content

Commit 5e70b3d

Browse files
committed
Add enterprise and server url configuration setting
1 parent cafa009 commit 5e70b3d

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

package.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,20 @@
4141
],
4242
"main": "./dist/extension.js",
4343
"contributes": {
44+
"configuration": {
45+
"title": "HackMD",
46+
"properties": {
47+
"Hackmd.serverURL": {
48+
"type": "string",
49+
"default": "https://hackmd.io/",
50+
"markdownDescription": "Specify the self-hosted server URL for HackMD EE or CodiMD."
51+
},
52+
"Hackmd.enterprise": {
53+
"type": "boolean",
54+
"description": "Check this if you are connecting to HackMD Enterprise server which contains more features."
55+
}
56+
}
57+
},
4458
"markdown.markdownItPlugins": true,
4559
"markdown.previewScripts": [
4660
"./dist/page.js"
@@ -183,4 +197,4 @@
183197
"node-fetch": "^2.6.0",
184198
"string": "git+ssh://git@github.com/hackmdio/string.js.git#a68176b3d"
185199
}
186-
}
200+
}

0 commit comments

Comments
 (0)