-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add vue
support
#45
base: main
Are you sure you want to change the base?
Conversation
So far, I have noticed two major issues.
|
AFAIK Volar 2.0 is released recently. The API may be changed a lot. I'm not sure how should this PR be done. |
@sxzz I saw the update for It seems that it should not be a very difficult thing to do, I will follow up later on. |
I'm waiting for that |
As |
Update Volar to |
@zcf0508 I can't build this branch successfully locally, can I get some guidance? |
@johnsoncodehk Right, this branch only add vue support but it can't build locally. You can checkout to https://github.com/zcf0508/ts-type-explorer/tree/feat/vue%2Bts5 this branch. yarn
cd package/api
yarn build
cd ..
cd typescript-pblugin
npx tsc -d
cd ..
cd typescript-explorer-vscode
yarn package |
Since |
volar 扩展已经废弃,目前使用Vue - Official |
@xzhdev 只是改了名字而已,扩展的标识还是 |
@zcf0508 好的哥,但是我用了你的vsix后,vue中ts类型显示error |
Fixed location error, now |
@zcf0508 我使用https://github.com/user-attachments/files/16380951/typescript-explorer-0.4.2-vue-ts5.zip 安装后没有效果,我用你的https://github.com/zcf0508/ts-type-explorer/tree/feat/vue%2Bts5 分支运行npm run package 打包visx后安装,vue中类型支持都没有了,真奇怪 |
(cherry picked from commit 760aff1)
I create a new typescript program by
vue-tsc
and then get the type from virtual file.I tried to get the type from
volar
but I have no idea about howvolar
resolve the type. It seems that only provide the information of type bygetTypeDefinitionAtPosition
orgetDefinitionAtPosition
function tovscode
. I don't know.I think this is an important feature to debug type with
vue
file. Could @sxzz and @johnsoncodehk review the code together?dsherret/ts-morph#1310