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
associate *.c++ & *.h++ files with c++ #104339
Conversation
@amazingcaio Thanks a lot! Can you remove the seti-font update? I'd rather do that separately. The seti update-script change is fine. The changes for the language is also fine. @joaomoreno Do you approve the code.iss changes? |
@aeschli done. as you can see, i reverted the update but then i manually edited |
Better remove the |
@aeschli sure :) sorry for not doing it when you first asked. |
apparently i missed a file. now macos is supposed to recognise *.c++ and *.h++ just like *.cpp and *.hpp i also noticed there's one other file that should change, however, following that logic, shouldn't it apply to .h files as well? currently .h files have objective-c syntax highlighting. wouldn't it be better to treat them as objective-c++? @JacksonKearl, you're the one who created those files. do you mind explaining it, so we could decide what to do? thx |
@amazingcaio I'd say for this PR adding |
@JacksonKearl i see your point. so i suppose the missing extensions should be added based on the extensions already in the file then. should i change that file for this pull request? i could add all of the missing extensions for c++, or maybe add .c++ & .h++ only, as i believe this would be part of this pr (someone else would then have to update that file with the other extensions), or i could not change those files at all, and someone else (maybe you) could add all of those missing file extensions (including .c++ and .h++). |
I'll just add them all and rebuild the grammar, this PR can stay as-is re. search editors. |
I already pushed the changes for the file association and the seti script for August. Thanks a lot @amazingcaio ! |
Thanks! |
This PR fixes #104320
i had to update manualy a .iss file (not so sure i should have -- maybe there's a script that does that automatically à la
update-icon-theme
?) so appropriate registry keys could be treated the same as.cpp
&.h
/.hpp
files on windows. i also added".hpp"
to the cpp extension so it can be recognised as a c++ file inside vscode. lastly i changed a regex in theme-seti'supdate-icon-theme.js
script file because, even though seti-ui recognised.h++
, the script ignored it. that's why i also had to update the icon themes.i hope those were all of the changes i had to make. maybe you should also add more file extensions. i know there's a lot of them but you should at least add those that are recognised by most compilers by default, so there'd be better compatibility between vscode and c++ compilers (eg. gcc automatically recognises
.cp
and.hp
as c++ files, but vscode doesn't).