volarjs / services

MIT License
124 stars 25 forks source link

fix: lack of completion #99

Closed JieamI closed 3 days ago

JieamI commented 3 days ago

There seem to be something wrong with the pug template since Vue - official was upgraded to v2.0, and I found a related issue that still hasn't been resolved, which you can check out here.

I compared volar-service-pug to volar-service-html and found that the initialize function was missing in volar-service-pug, which resulted in an inability to accurately obtain customData.

I tried making changes to the code and repackaging the plugin, and finally, the completion in the pug template worked as expected.

I am new to this project and not sure if my changes are appropriate, but I hope they help.

johnsoncodehk commented 3 days ago

LGTM, thank you for looking into this issue!