diff --git a/package.json b/package.json
index e5b2601..5991ee2 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
"publisher": "YRM",
"name": "starter-templates",
"displayName": "Starter Templates",
- "version": "0.3.0",
+ "version": "0.4.0",
"description": "Kickstart your project with a Starter Template in VSCode",
"license": "MIT",
"repository": {
diff --git a/resources/nuxt.svg b/resources/nuxt.svg
new file mode 100644
index 0000000..cd4669b
--- /dev/null
+++ b/resources/nuxt.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/resources/ts.svg b/resources/ts.svg
new file mode 100644
index 0000000..5cad3ab
--- /dev/null
+++ b/resources/ts.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/resources/vue.svg b/resources/vue.svg
new file mode 100644
index 0000000..d3e84de
--- /dev/null
+++ b/resources/vue.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/resources/web-ext.svg b/resources/web-ext.svg
new file mode 100644
index 0000000..2d12e33
--- /dev/null
+++ b/resources/web-ext.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/commands/starter.ts b/src/commands/starter.ts
index 011bb2a..0fb569d 100644
--- a/src/commands/starter.ts
+++ b/src/commands/starter.ts
@@ -128,24 +128,36 @@ export class StarterCommands extends BaseCommands {
}
private getTemplates(): Array {
- const templates = [
+ const templates: Array = [
{
kind: QuickPickItemKind.Separator,
label: 'Vue',
},
{
label: 'Create Vue(Official)',
- detail: 'π οΈ The recommended way to start a Vite-powered Vue project',
+ iconPath: {
+ dark: Uri.file(this.context.asAbsolutePath('resources/vue.svg')),
+ light: Uri.file(this.context.asAbsolutePath('resources/vue.svg')),
+ },
+ detail: 'The recommended way to start a Vite-powered Vue project',
template: { id: 'create-vue', defaultProjectName: 'vue-project' },
},
{
label: 'Vitesse(Anthony Fu)',
- detail: 'π Opinionated Vite + Vue Starter Template',
+ iconPath: {
+ dark: Uri.file(this.context.asAbsolutePath('resources/vue.svg')),
+ light: Uri.file(this.context.asAbsolutePath('resources/vue.svg')),
+ },
+ detail: 'Opinionated Vite + Vue Starter Template',
template: { id: 'vitesse', defaultProjectName: 'vue-vitesse-project' },
},
{
label: 'Vitesse Lite(Anthony Fu)',
- detail: 'βΊοΈ Lightweight version of Vitesse',
+ iconPath: {
+ dark: Uri.file(this.context.asAbsolutePath('resources/vue.svg')),
+ light: Uri.file(this.context.asAbsolutePath('resources/vue.svg')),
+ },
+ detail: 'Lightweight version of Vitesse',
template: { id: 'vitesse-lite', defaultProjectName: 'vue-vitesse-lite-project' },
},
{
@@ -154,31 +166,47 @@ export class StarterCommands extends BaseCommands {
},
{
label: 'Nuxt3 Minimal Starter(Official)',
- detail: 'Create a new Nuxt project, module, layer or start from a theme with our collection of starters.',
+ iconPath: {
+ dark: Uri.file(this.context.asAbsolutePath('resources/nuxt.svg')),
+ light: Uri.file(this.context.asAbsolutePath('resources/nuxt.svg')),
+ },
+ detail: 'Create a new Nuxt project',
template: { id: 'nuxt3-minimal-starter', defaultProjectName: 'nuxt-project' },
},
{
label: 'Vitesse Nuxt3(Anthony Fu)',
- detail: 'Vitesse for Nuxt 3 ππβ‘οΈ',
+ iconPath: {
+ dark: Uri.file(this.context.asAbsolutePath('resources/nuxt.svg')),
+ light: Uri.file(this.context.asAbsolutePath('resources/nuxt.svg')),
+ },
+ detail: 'Vitesse for Nuxt 3',
template: { id: 'vitesse-nuxt3', defaultProjectName: 'nuxt-vitesse-project' },
},
{
kind: QuickPickItemKind.Separator,
- label: 'Web Extension',
+ label: 'TypeScript Library',
},
{
- label: 'Vitesse WebExt(Anthony Fu)',
- detail: 'β‘οΈ WebExtension Vite Starter Template',
- template: { id: 'vitesse-webext', defaultProjectName: 'webext-vitesse-project' },
+ label: 'Starter TS(Anthony Fu)',
+ iconPath: {
+ dark: Uri.file(this.context.asAbsolutePath('resources/ts.svg')),
+ light: Uri.file(this.context.asAbsolutePath('resources/ts.svg')),
+ },
+ detail: 'Starter template for TypeScript library',
+ template: { id: 'starter-ts', defaultProjectName: 'ts-library-project' },
},
{
kind: QuickPickItemKind.Separator,
- label: 'TypeScript Library',
+ label: 'Web Extension',
},
{
- label: 'Starter TS(Anthony Fu)',
- detail: 'Starter template for TypeScript library',
- template: { id: 'starter-ts', defaultProjectName: 'ts-library-project' },
+ label: 'Vitesse WebExt(Anthony Fu)',
+ iconPath: {
+ dark: Uri.file(this.context.asAbsolutePath('resources/web-ext.svg')),
+ light: Uri.file(this.context.asAbsolutePath('resources/web-ext.svg')),
+ },
+ detail: 'WebExtension Vite Starter Template',
+ template: { id: 'vitesse-webext', defaultProjectName: 'webext-vitesse-project' },
},
]
return templates