-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
In large-scale C/C+projects, the GB2312 encoding format will affect intelligent perception #13028
Comments
Hi @Xboooo . Do you also see the problem with the latest insiders, 1.23.2 ? Note that |
Minimal repro is with test1.cpp #include "test1.h"
int main()
{
return 这;
} test1.h int 这; The errors go away after the header is opened. I repro it in 1.18.5 from a year ago so it doesn't appear to be a regression. |
@sean-mcmanus I see that you can reproduce this problem. Is there anything I can help with? I'm happy to help you solve this problem |
@Xboooo The fix will be available in our next release, but due to the holidays I don't think we're releasing another update until January unless there's a severe enough regression bug. |
@sean-mcmanus Merry Christmas🎉! Enjoy your vacation to the fullest, I have returned the version to "v1.16.3" which can now avoid this defect |
@Xboooo Fixed with https://github.com/microsoft/vscode-cpptools/releases/tag/v1.23.3 (pre-release). |
@sean-mcmanus I tried the pre-release version v1.12.3, and it seems to have been fully fixed |
great |
@sean-mcmanus This issue has been fixed on latest C/C++ version 1.23.4(pre-release), you can get the details below. Thank you! |
Environment
Bug Summary and Steps to Reproduce
I found that in my large C/C++project, all annotations containing Chinese (GB2312) can affect intelligent perception, and the color rendering of the code is also incorrect. At this time, my setting is "files. encoding": "gb2312"
After deleting "files. encoding": "gb2312" and "files. autoGuessEncoding": true, it looks a bit normal now, but the intelligent perception is still not good
For example, when jumping to a function, it can only jump to the. h file. However, when I modified the corresponding. c file to convert it to UTF-8 format, it worked properly
I am confused whether this is a problem with vscode or cpptools
Configuration and Logs
Other Extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: