Last 12 weeks · 0 commits
5 of 6 standards met
VS Code Version:Version: 1.87.2 (user setup) Commit: https://github.com/microsoft/vscode/commit/863d2581ecda6849923a2118d93a088b0745d9d6 Date: 2024-03-08T15:20:17.278Z Electron: 27.3.2 ElectronBuildId: 26836302 Chromium: 118.0.5993.159 Node.js: 18.17.1 V8: 11.8.172.18-electron.0 OS Version: Windows_NT x64 10.0.19045 Steps to Reproduce: When I first opened vscode, I couldn't comment on a single line in the .vue file, I disabled all the plugins and it still didn't work, and I made sure my shortcuts were correct. I don't have any problem with single line comments in .html, when I comment a line of code in .html and then go back to .vue, the single line comments in the .vue file work again!
Fixes #2344. Summary Preserve imported child components' exported TypeScript type while analyzing component info. Extract props from and component types, then merge them with existing runtime metadata. Add Vue 2 and Vue 3 diagnostics coverage for generic props type parameters. Tests IssueHunt Summary Referenced issues This pull request has been submitted to: #2344: Use Vue component's Props type parameter for prop type validation
[x] I have searched through existing issues Feature Request To use Vue component type parameter for prop type validation feature. Vue component type has dedicated type parameter to represent props: Vue 2: 5th parameter of https://github.com/vuejs/vue/blob/dev/types/vue.d.ts#L64 Vue 3: 1st, 7th and 8th parameters of https://github.com/vuejs/vue-next/blob/master/packages/runtime-core/src/componentPublicInstance.ts#L163 By using it, we can validate any kind of component if it is properly typed. An example use case is Vue Class Component. I'm planning to introduce a new way to define component props and it will be quite a different API interface from the basic Vue's prop definition. We can even use prop type validation with class component if we use type parameter from the component. It may also solve #2312 and #2343. IssueHunt Summary Backers (Total: $100.00) $100.00 have been anonymously funded. Submitted pull Requests #3732 Use component props type for prop validation #3733 Fix prop validation for typed component props Become a backer now! Or submit a pull request to get the deposits! Tips Checkout the Issuehunt explorer to discover more funded issues. Need some help from other developers? Add your repositories on IssueHunt to raise funds.
Repository: vuejs/vetur. Description: Vue tooling for VS Code. Stars: 5746, Forks: 597. Primary language: TypeScript. Languages: TypeScript (92.7%), Vue (6.2%), JavaScript (1%), Shell (0%). License: MIT. Homepage: https://vuejs.github.io/vetur/ Topics: hacktoberfest, visual-studio-code, vscode, vue, vue-tooling. Latest release: v0.37.3 (3y ago). Open PRs: 29, open issues: 329. Last activity: 2y ago. Community health: 75%. Top contributors: octref, yoyo930021, dependabot[bot], HerringtonDarkholme, dependabot-preview[bot], ktsn, p-kuen, jasonlyu123, sapphi-red, jacob-greenfield and others.