language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

Volar high CPU utilization

Open RMFogarty opened this issue 2 years ago • 7 comments

As soon as Volar is enabled it immediately starts using very high CPU. This is not an issue unless I'm on my laptop and it will very quickly drain the battery. Regardless of what I'm doing if VS code is open it will pin the CPU and also high memory usage. Makes it extremely difficult to do Vue development while using a laptop.

image

I've tried enabling volar.lowPowerMode although it either doesn't appear to be doing anything or I've not set it in the right place.

Workspace VSCode settings: `{ "folders": [ { "path": ".." } ], "settings": { "volar.format.initialIndent": {

		"html": true
	},
	"volar.lowPowerMode": true,
},

}`

Visual Studio Version: 1.81.1 (Universal) Electron: 22.3.18 Chromium: 108.0.5359.215 Node.js: 16.17.1 V8: 10.8.168.25-electron.0 OS: Darwin arm64 22.3.0

RMFogarty avatar Aug 23 '23 18:08 RMFogarty

Takeover mode did not help. I've also just disabled the Volar TS plugin and just using the regular one to ensure that was not causing the issue. Thanks

RMFogarty avatar Aug 24 '23 12:08 RMFogarty

I'm experiencing the same issue on my M2

VSCode Version: 1.82.2 (Universal) Electron: 25.8.1 ElectronBuildId: 23779380 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Darwin arm64 22.5.0

boernard avatar Sep 15 '23 08:09 boernard

Try upgrading to 1.8.18, does this help?

so1ve avatar Oct 10 '23 06:10 so1ve

Screenshot 2023-10-10 at 11 37 07 AM

I've upgraded to 1.8.18 reloaded and still continuously runs in the background at 70%-95% CPU.

Also upgraded VSCode:

Version: 1.83.0 Commit: e7e037083ff4455cf320e344325dacb480062c3c Date: 2023-10-03T16:13:10.518Z Electron: 25.8.4 ElectronBuildId: 24154031 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Darwin arm64 22.3.0

RMFogarty avatar Oct 10 '23 15:10 RMFogarty

Unfortunately also with version v1.8.21 I still have the same issue. CPU utilization >80% and hovering over function names just results in a tooltip that is stuck at loading...

boernard avatar Nov 06 '23 15:11 boernard

I have this problem too. Is there any solution?

VivianWang1993 avatar Feb 28 '24 08:02 VivianWang1993

I have this problem too.

isuoge avatar Mar 15 '24 09:03 isuoge

Please check if this issue has been resolved in version 2.x. If not, feel free to create a new one.

davidmatter avatar Jul 07 '24 13:07 davidmatter