-
-
Notifications
You must be signed in to change notification settings - Fork 399
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
vscode cpu100% #507
Comments
I tried vicons before but I can't reproduce. Please provide repro case, and your VSCode info by |
@johnsoncodehk版本: 1.60.1 (user setup)
|
Already has issue #399, but I hard to getting a repro case. Please follow steps to make a repro case:
I don't want to use issue template to force user provide all informations, but check the proformance issue that missing repro case / informations is very time consuming. I will close kind of this issues until repro case provided. |
Thank you for your reminder |
hello!I have uninstalled all extensions and only kept them:volar, but the problem still exists.
If you want to reproduce the problem,you can
then open this folder with vs code
see the taskmanager |
The problem comes from two aspects:
|
im having constantly cpu usage also on my linux machine on "vite": "^2.4.4", + "ant-design-vue": "^2.2.8", |
Please try 0.27.23. |
Good job! I really appreciate it. The tired CPU with overwork could take a rest now. |
ok it does drop to between 1 to 6% . thank you 🙏 |
Nice!The CPU is now between 1% and 5%,But my version was originally 0.27.23. I don't know why it works now. Hahaha |
Glory belongs to reproduction provider @yaolunmao. :) This issue has been raised a long time ago, but most people just complained or gave the lowest rating and didn't want to help solve it. If there is a repro case, I can solve it quickly usually. |
@johnsoncodehk |
@kikyous I don't know the difference between these, currently I just use ts.sys.watchFile: https://github.com/johnsoncodehk/volar/search?q=%22ts.sys.watchFile%22 Can you provide some references, or a PR? |
I think use a lib like chokidar is a good choice: |
tool like Chokidar use filesystem event to listen file change, insted of polling file system.
|
Volar used chokidar at the beginning, but I forgot what caused me to deprecate it and use ts.sys.watchFile instead. I can try it again, please open a new issue to track. |
It seems that I need configure vscode ts extension to use fs event:
or in tsconfig.json: |
安装了这两个包
可能和volar插件有冲突,导致cpu占用过高
The text was updated successfully, but these errors were encountered: