ts-morph icon indicating copy to clipboard operation
ts-morph copied to clipboard

Supports Volar (for Vue SFC)

Open sxzz opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe.

I want to use ts-morph in .vue files, so it requires integration with Volar.

Describe the solution you'd like

Provide a hook callback function to hook languageServiceHost.

Because Volar will return an object that extended from the original host. https://github.com/johnsoncodehk/volar/blob/b15467cc29dd10887232d2eeed118210e2fec3e0/packages/vue-language-core/src/lsContext.ts#L108-L113

Describe alternatives you've considered

sxzz avatar Jul 24 '22 10:07 sxzz

I created this, but currently only supports <script> or <script setup> block. If anyone needs support for renaming variables in <template>, I'll try to implement it. https://github.com/ypresto/vue-ts-morph

ypresto avatar Dec 12 '24 15:12 ypresto