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

在pathCaseSensitivity=false的情况下,大小写不同的同名文件,断点会识别错误的问题 #189

Open
cattenblue opened this issue Aug 26, 2024 · 0 comments

Comments

@cattenblue
Copy link

Describe the bug
有两个同名文件,但是大小写不一致,并且在不同的文件夹下A/AA.lua, B/aa.lua, 我在aa.lua 里下断点,断点跳转错误,会跳到AA.lua的相同行

然后我发现把 pathCaseSensitivity 改成true可以解决

然后我简单看了下源码,在pathManager.ts 中rebuildWorkspaceNamePathMap的时候,fileNameKey应该是区分大小写的
image
所以,AA.lua 和aa.lua 不属于同名文件

而在checkFullPath中在pathCaseSensitivity的状态下,遍历查到的时候,会首先找到AA.lua,所以文件路径就找错了
image

所以想询问下,这是bug还是设定?

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

1 participant