Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intellisense not working in a monorepo #1343

Closed
alex-dow opened this issue May 24, 2022 · 0 comments
Closed

Intellisense not working in a monorepo #1343

alex-dow opened this issue May 24, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@alex-dow
Copy link

alex-dow commented May 24, 2022

Version
v0.34.16

Repo
https://github.com/alex-dow/vue3monorepo

Description

In the example monorepo, I have a library package and an app package. The library uses vite build --watch and vite-plugin-dts to ensure that builds and types are regenerated as needed. The app simply uses the vite dev server.

If I make changes to packages/components/src/components/Button.vue, then edit packages/app/src/components/App.vue, the changes I made to Button.vue will not be reflected in intellisense while editing App.vue. I must restart VLS in order to see the changes.

I am not 100% certain that this is actually a problem with Volar or not.

Steps to Reproduce

  1. Run yarn start:dev in the components and app packages (needs two consoles)
  2. Add or remove values to the Variant type in packages/components/src/components/Button.vue
  3. Open or continue editing packages/app/components/App.vue
  4. Remove the current value from the variant prop and hit ctrl-space

Expected Behavior

The list of available values for the variant prop, reflects the current code of the Button component

Actual Behavior

The list of available values does not change.

@johnsoncodehk johnsoncodehk added the bug Something isn't working label May 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants