Skip to content

Commit adf65a2

Browse files
refactor: update Volar recommeded plugin (#458)
And removes mentions of the now unused `Vue.vscode-typescript-vue-plugin` Fixes #455
1 parent ac2bd3f commit adf65a2

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

template/base/.vscode/extensions.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
2+
"recommendations": ["Vue.volar"]
33
}

utils/generateReadme.ts

+2-9
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,7 @@ const sfcTypeSupportDoc = [
44
'',
55
'## Type Support for `.vue` Imports in TS',
66
'',
7-
'TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.',
8-
'',
9-
"If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:",
10-
'',
11-
'1. Disable the built-in TypeScript Extension',
12-
" 1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette",
13-
' 2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`',
14-
'2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.',
7+
'TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) to make the TypeScript language service aware of `.vue` types.',
158
''
169
].join('\n')
1710

@@ -36,7 +29,7 @@ This template should help get you started developing with Vue 3 in Vite.
3629
3730
## Recommended IDE Setup
3831
39-
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
32+
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).
4033
${needsTypeScript ? sfcTypeSupportDoc : ''}
4134
## Customize configuration
4235

0 commit comments

Comments
 (0)