Closed tbusser closed 2 years ago
@Akryum I've done those steps. In the repo I linked to you can see the reference to histoire has been added to the env.d.ts
file and that the file is added to the includes
array. Can you have a look at the repo and see if I missed something?
It was a regression with the extraction of vue3 project logic into a separate package.
The reference will change to histoire/vue
:
https://github.com/histoire-dev/histoire/commit/fbec6bff57d2a20fbae8b32a72e7a1db456a8a59#diff-d11497d93c4e9a068e9d45153a3b33747c860d802b11d3f7cd9e5286916e0857
Describe the bug
When I open the Vue3 example project in my VSCode I get suggestions for the Histoire components and their props. This is super useful as I don't have visit any documentation website. When I use Histoire in my own project I don't get these suggestions. When I move the Vue3 example folder out of the Histoire root folder I also don't get any intellisense on the Histoire components.
VSCode intellisense doesn't suggest any Histoire components in my project and has no type information for the
Story
component.It also doesn't suggest any of the props:
Hovering over the
Story
component in the Vue3 example gives me the following info:It also gives suggestions for the props:
Is there supposed to be intellisense available for the Histoire components? Is there some configuration step I have missed?
Reproduction
I've created a new Vue3 project using
npm init vue@next
, afterwards I've added Histoire to the project using the steps described in the documentation.I've create a repository with the project and an example story for the
HelloWorld.vue
component. The repository can be found here.System Info
Used Package Manager
npm
Validations