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

[Vue TS Plugin] remove Project::Project ... keeps getting triggered for multiple tsconfigs repo #57633

Closed
1 task done
johnsoncodehk opened this issue Mar 4, 2024 · 4 comments
Assignees
Labels
Needs More Info The issue still hasn't been fully clarified

Comments

@johnsoncodehk
Copy link

Acknowledgement

  • I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion.

Comment

I'm not sure of the exact conditions under which the problem occurs, but it is reproducible reliably. In a Vue project containing multiple tsconfigs, enabling the Vue TS Plugin will cause 'remove Project::Project ...' keeps getting triggered.

Steps to reproduce

  1. Clone https://github.com/elk-zone/elk
  2. Open the repo in VSCode, install marketplace.visualstudio.com/items?itemName=Vue.volar 2.0.4
  3. Open components/account/AccountAvatar.vue, the CPU usage of tsserver rises to 100%. remove Project::Project '/Users/johnsonchu/Desktop/GitHub/elk/docs/tsconfig.json' (Configured) is triggered every second: tsserver.log.zip
@johnsoncodehk johnsoncodehk changed the title [Vue TS Plugin] 'remove Project::Project ...' keeps getting triggered [Vue TS Plugin] remove Project::Project ... keeps getting triggered for multiple tsconfigs repo Mar 4, 2024
@RyanCavanaugh RyanCavanaugh added the Needs Investigation This issue needs a team member to investigate its status. label Mar 4, 2024
@sheetalkamat
Copy link
Member

the tsserver log has too many plugins involved. Please send logs with just the vue plugin to investigate this issue.

@sheetalkamat sheetalkamat added Needs More Info The issue still hasn't been fully clarified and removed Needs Investigation This issue needs a team member to investigate its status. labels Mar 4, 2024
@johnsoncodehk
Copy link
Author

Here it is: tsserver.log.zip

2024-03-05.10.37.05.mov

@sheetalkamat
Copy link
Member

sheetalkamat commented Mar 5, 2024

@johnsoncodehk can you please try typescript nightly. i think this is fixed by #56403 Dont have macOS to test it out but it does not repro on windows.

Also when sharing tsserver log, pls share the verbose log as otherwise its hard to know what command/file update is doing what

@johnsoncodehk
Copy link
Author

johnsoncodehk commented Mar 6, 2024

The strange thing is that I can't reproduce the problem now, I have tried to restore the reproduction conditions as much as possible. I'm assuming this has something to do with the state of my system, once I successfully reproduce it again I'll let you know if the nightly build fixes the issue. thank you for your time!

It's worth mentioning that some people are still experiencing high CPU usage (vuejs/language-tools#3981), which I will be looking to reproduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs More Info The issue still hasn't been fully clarified
Projects
None yet
Development

No branches or pull requests

3 participants