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

vue文件的文件名会影响tsconfig的读取? #1592

Closed
supf1994 opened this issue Jul 18, 2022 · 7 comments
Closed

vue文件的文件名会影响tsconfig的读取? #1592

supf1994 opened this issue Jul 18, 2022 · 7 comments

Comments

@supf1994
Copy link

image
我将文件名设置成 CookView.vue, vs右下方就会显示 No tsconfig
image
将其该下名字,又能正常的读取tsconfig,
并且这会影响代码提示,导致一些导入的module路径下出现红线

@Inori-Lover
Copy link

u can try exit the vscode and wait a little time then restart; i more like volar get stuck in some where;

and may be roll back volar version will work(i keep use 0.38.3), keep in mind: every time u change the volar version, try do above actions

====

试下退出vscode并等一阵子(大概3-5分钟?)再重启,这看起来更像是volar在解析这个文件时遇到了点什么问题然后这个错误一直缓存在那每次打开都被这个错误block了

以及可以尝试下回滚volar版本(我暂时停在0.38.3了),注意每次回滚都重复一下上边的操作,或者f1然后 'restart vue server' 可能也行

// ↓ 修改链接里的版本就可以下载不同的版本了
https://marketplace.visualstudio.com/_apis/public/gallery/publishers/Vue/vsextensions/volar/0.38.3/vspackage?targetPlatform=win32-x64

@Inori-Lover
Copy link

我之前也以为system是一个关键词,最后改名绕过去了;
主要是想搞复现也搞不了…复现不出来

@supf1994
Copy link
Author

u can try exit the vscode and wait a little time then restart; i more like volar get stuck in some where;

and may be roll back volar version will work(i keep use 0.38.3), keep in mind: every time u change the volar version, try do above actions

====

试下退出vscode并等一阵子(大概3-5分钟?)再重启,这看起来更像是volar在解析这个文件时遇到了点什么问题然后这个错误一直缓存在那每次打开都被这个错误block了

以及可以尝试下回滚volar版本(我暂时停在0.38.3了),注意每次回滚都重复一下上边的操作,或者f1然后 'restart vue server' 可能也行

// ↓ 修改链接里的版本就可以下载不同的版本了 https://marketplace.visualstudio.com/_apis/public/gallery/publishers/Vue/vsextensions/volar/0.38.3/vspackage?targetPlatform=win32-x64

是的,使用旧版之后可以正常的读取tsconfig文件,并且最近发现的无法部分函数无法跳转到定义的问题也解决了
#1591

@kingyue737
Copy link
Contributor

是不是改过文件名大小写了?改文件名大小写会变成no tsconfig,以前也有人遇到过类似的问题

#1125

@supf1994
Copy link
Author

是不是改过文件名大小写了?改文件名大小写会变成no tsconfig,以前也有人遇到过类似的问题

#1125

好像是有这改过大小写

@Inori-Lover
Copy link

是不是改过文件名大小写了?改文件名大小写会变成no tsconfig,以前也有人遇到过类似的问题

#1125

确实…回忆了一下,我这边两次遇到这个情况都有这个操作

@supf1994
Copy link
Author

是不是改过文件名大小写了?改文件名大小写会变成no tsconfig,以前也有人遇到过类似的问题
#1125

确实…回忆了一下,我这边两次遇到这个情况都有这个操作

是的,我刚刚测试了,修改文件名的大小写确实会有这问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants