From dbc38bf94d4304c8781e92e12b848bae323cdba9 Mon Sep 17 00:00:00 2001 From: yoyo930021 Date: Thu, 26 Nov 2020 16:38:33 +0800 Subject: [PATCH] Add snippetFolder in projects --- rfcs/001-vetur-config-file.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rfcs/001-vetur-config-file.md b/rfcs/001-vetur-config-file.md index b4369b82f8..0c9bfbe180 100644 --- a/rfcs/001-vetur-config-file.md +++ b/rfcs/001-vetur-config-file.md @@ -37,6 +37,9 @@ module.exports = { // Where is TypeScript config file in the project? // It is relative to root property. tsconfig: './tsconfig.json', + // **optional** default: `'./.vscode/vetur/snippets'` + // Where is vetur custom snippets folders? + snippetFolder: './.vscode/vetur/snippets' // **optional** default: `[]` // Register globally Vue component glob. // If you set it, you can get completion by that components. @@ -108,6 +111,7 @@ export interface VeturConfig { root: string, package?: string, tsconfig?: string, + snippetFolder?: string, globalComponents?: Array }> } @@ -175,6 +179,9 @@ It can reduce development and maintenance costs. PS. `jsconfig.json` is also support it. +### `projects[].snippetFolder` +Vetur Custom snippets folder path + ### `projects[].globalComponents` We have some amazing features, Like `template interpolation`. But it only work when register component in component.