Skip to content
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

重命名.ts文件名, .vue文件不会自动更新import #3481

Closed
zgliubo opened this issue Aug 14, 2023 · 5 comments
Closed

重命名.ts文件名, .vue文件不会自动更新import #3481

zgliubo opened this issue Aug 14, 2023 · 5 comments

Comments

@zgliubo
Copy link

zgliubo commented Aug 14, 2023

vs code自带的TS Server在.ts文件重命名时, 如果其他.ts文件导入了该文件, 则会自动更新导入文件的名称
image
但是在.vue文件中会将重命名的导入文件名更新到文件末尾,
1691982863906(1)

@so1ve so1ve added the bug Something isn't working label Aug 14, 2023
@so1ve so1ve added need info and removed bug Something isn't working labels Sep 4, 2023
@so1ve
Copy link
Member

so1ve commented Sep 4, 2023

I can't reproduce this problem. Could you please provide which version of volar are you using?

@zgliubo
Copy link
Author

zgliubo commented Sep 4, 2023

TypeScript Vue Plugin (Volar)
v1.8.8
Vue Language Features (Volar)
v1.8.8

@WangJincheng4869
Copy link

WangJincheng4869 commented Sep 8, 2023

I can't reproduce this problem. Could you please provide which version of volar are you using?我无法重现这个问题。您能提供一下您使用的是哪个版本的volar吗?

不仅仅是重命名,就是新建 vue 组件后也不能自动导入,必须重启 Volar;
(Not only is it renaming, but it also means that after creating a new Vue component, it cannot be automatically imported and Volar must be restarted)

@WangJincheng4869
Copy link

新建文件后,应该将该组件加入自动导入索引,直接可以自动导入就可以了。
动画

@so1ve
Copy link
Member

so1ve commented Oct 10, 2023

closed in favor of #3646

@so1ve so1ve closed this as not planned Won't fix, can't repro, duplicate, stale Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants