Closed
Description
Info
- Platform: Windows
- Vetur version: 0.26.1
- VS Code version: 1.48.1
Problem
I've seen related issues like #1272 talking about calls to synchronizeHostData
. I did not dig in too much, but I found that when validating sources and templates, calls such as getSemanticDiagnostics
may call synchronizeHostData
internally (link), and by a rudimentary profiling it looks like each validation will took ~300ms on my computer. When I'm writing code, js and template will be validated separately, so they might take something like 500 or 600ms in total.
I'm not sure if that's the cause of the issue since I didn't do an accurate profiling, but probably it will help.
vetur/server/src/modes/script/javascript.ts
Line 118 in 2e32351