diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 4cd0cef..950f090 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,13 +1,10 @@ { // List of extensions which should be recommended for users of this workspace. "recommendations": [ - "Vue.volar", // Vue 3 Language Features - "Vue.vscode-typescript-vue-plugin", // Typescript Vue Plugin (Volar) + "Vue.volar", // Vue 3 Language Features "esbenp.prettier-vscode", - "dbaeumer.vscode-eslint", + "dbaeumer.vscode-eslint" ], // List of extensions recommended by VS Code that should not be recommended for users of this workspace. - "unwantedRecommendations": [ - "octref.vetur", - ] + "unwantedRecommendations": ["octref.vetur"] } diff --git a/README.md b/README.md index a019dee..77a4933 100644 --- a/README.md +++ b/README.md @@ -8,18 +8,13 @@ This template should help get you started developing with Vue 3 in Vite. ## Recommended IDE Setup -[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.vscode-typescript-vue-plugin). +- [VSCode](https://code.visualstudio.com/) +- [Vue - Official (previously Volar, replaces Vetur)](https://marketplace.visualstudio.com/items?itemName=Vue.volar) ## Type Support for `.vue` Imports in TS -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=johnsoncodehk.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types. - -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: - -1. Disable the built-in TypeScript Extension - 1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette - 2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)` -2. Reload the VSCode window by running `Developer: Reload Window` from the command palette. +- [Using Vue with TypeScript](https://vuejs.org/guide/typescript/overview.html) +- [Takeover Mode is no longer needed in version 2.0 and has been deprecated.](https://github.com/vuejs/language-tools/releases/tag/v2.0.0) ## Customize configuration