open files in vscode in development

This commit is contained in:
Philipp Kühn
2020-10-30 18:11:54 +01:00
parent 1ab817295c
commit 5723b1b761
3 changed files with 16 additions and 0 deletions

View File

@@ -214,6 +214,10 @@ export default {
const { currentPath } = this
const filePath = currentPath === '' ? '/introduction' : currentPath
if (process.env.NODE_ENV === 'development') {
return `vscode://file${this.cwd}/src/docPages${filePath}.md`
}
return `https://github.com/ueberdosis/tiptap-next/blob/main/docs/src/docPages${filePath}.md`
},
},