volarjs / services

MIT License
124 stars 25 forks source link

fix(typescript): only process `getScript()` result in semantic features #73

Closed johnsoncodehk closed 5 months ago

johnsoncodehk commented 5 months ago

When a file generates multiple TS virtual codes, the semantic features are processing the first TS document returned by forEachEmbeddedCode instead of the first valid TS file. Which breaks astro's TS functionality.