From 0a5fec6f690100bf35f9120aa356d6249817b668 Mon Sep 17 00:00:00 2001 From: IndexXuan Date: Fri, 18 Sep 2020 12:10:18 +0800 Subject: [PATCH 1/8] feat(snippets): first class Vue 2.0 + VCA --- package.json | 7 ++++--- snippets/vca.json | 25 +++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 snippets/vca.json diff --git a/package.json b/package.json index 3d32fec..f0dcb74 100644 --- a/package.json +++ b/package.json @@ -30,9 +30,10 @@ "Snippets" ], "contributes": { - "snippets": [{ + "snippets": [ + { "language": "vue", - "path": "./snippets/vue.json" + "path": "./snippets/vca.json" }, { "language": "jade", @@ -84,4 +85,4 @@ } ] } -} \ No newline at end of file +} diff --git a/snippets/vca.json b/snippets/vca.json new file mode 100644 index 0000000..e2822f9 --- /dev/null +++ b/snippets/vca.json @@ -0,0 +1,25 @@ +{ + "Vue Single File Component": { + "prefix": "sfc", + "body": [ + "", + "", + "", + "", + "" + ], + "description": "Base for Vue SFC File" + } +} From b4227efb4cc6e8557cd9c259ae5cbac703091a8f Mon Sep 17 00:00:00 2001 From: IndexXuan Date: Fri, 18 Sep 2020 12:15:00 +0800 Subject: [PATCH 2/8] feat: update SFC snippets --- snippets/vca.json | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/snippets/vca.json b/snippets/vca.json index e2822f9..bbf84c0 100644 --- a/snippets/vca.json +++ b/snippets/vca.json @@ -3,21 +3,23 @@ "prefix": "sfc", "body": [ "", "", "", "", "" ], "description": "Base for Vue SFC File" From f1a11418bc546726269a8c263a2643752b55dcc7 Mon Sep 17 00:00:00 2001 From: IndexXuan Date: Fri, 18 Sep 2020 12:15:42 +0800 Subject: [PATCH 3/8] chore: bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f0dcb74..6090653 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "displayName": "Vue VSCode Snippets", "description": "Snippets that will supercharge your Vue workflow", "icon": "images/vue-logo.png", - "version": "2.1.5", + "version": "3.0.0", "publisher": "sdras", "engines": { "vscode": "^1.14.0" From 41087585e6e3455cb417753507a2e355e6965cac Mon Sep 17 00:00:00 2001 From: IndexXuan Date: Fri, 18 Sep 2020 12:19:20 +0800 Subject: [PATCH 4/8] feat: SFC update --- package.json | 2 +- snippets/vca.json | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 6090653..ba7a396 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "displayName": "Vue VSCode Snippets", "description": "Snippets that will supercharge your Vue workflow", "icon": "images/vue-logo.png", - "version": "3.0.0", + "version": "3.0.1", "publisher": "sdras", "engines": { "vscode": "^1.14.0" diff --git a/snippets/vca.json b/snippets/vca.json index bbf84c0..b3108d6 100644 --- a/snippets/vca.json +++ b/snippets/vca.json @@ -13,6 +13,13 @@ "", "export default defineComponent({", "\tname: '${0}',", + "\tsetup() {", + "\tconst xxxRef = ref()", + "", + "\t\treturn {", + "\t\t\txxxRef,", + "\t\t}", + "\t}", "})", "", "", From b42c41399f21757585722ede55e71ada6388463d Mon Sep 17 00:00:00 2001 From: IndexXuan Date: Fri, 18 Sep 2020 12:22:02 +0800 Subject: [PATCH 5/8] chore: bump version --- package.json | 2 +- snippets/vca.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index ba7a396..a44fa35 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "displayName": "Vue VSCode Snippets", "description": "Snippets that will supercharge your Vue workflow", "icon": "images/vue-logo.png", - "version": "3.0.1", + "version": "3.0.2", "publisher": "sdras", "engines": { "vscode": "^1.14.0" diff --git a/snippets/vca.json b/snippets/vca.json index b3108d6..5c41912 100644 --- a/snippets/vca.json +++ b/snippets/vca.json @@ -9,7 +9,7 @@ "", "", "", "", From 11ab13cb594e0a6e02a89f49dfb8f04bbaab7b1e Mon Sep 17 00:00:00 2001 From: IndexXuan Date: Fri, 20 Aug 2021 23:33:42 +0800 Subject: [PATCH 8/8] feat: use Vue 3 sfc --- package.json | 2 +- snippets/vca.json | 16 ++++------------ 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 39ee93c..f07ffb2 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "displayName": "Vue VSCode Snippets", "description": "Snippets that will supercharge your Vue workflow", "icon": "images/vue-logo.png", - "version": "3.0.4", + "version": "4.0.0-beta.0", "publisher": "sdras", "engines": { "vscode": "^1.14.0" diff --git a/snippets/vca.json b/snippets/vca.json index d07c96d..5f8b3f5 100644 --- a/snippets/vca.json +++ b/snippets/vca.json @@ -4,23 +4,15 @@ "body": [ "", "", - "", "", "