echebbi / eclipse-discord-integration

Discord's Rich Presence Integration within Eclipse IDE
https://discord-rich-presence-for-eclipse-ide.readthedocs.io/en/latest/
Other
45 stars 5 forks source link

*.h Files not displayed correctly... #48

Closed XLPhere closed 6 years ago

XLPhere commented 6 years ago

Hi!

I'm using eclipse on Linux (OpenSuse Tumbleweed 20180815) When I'm developing in C++, .h files aren't properly displayed (not as cpp nor as c)

Maybe add an Image for c/cpp header files or ability to select if its displayed as cpp or c screenshot_20180820_203442

Plugin works well besides that thing ^^

Thanks for Helping!

echebbi commented 6 years ago

Hello!

Indeed, I didn't take the time yet to add support for the C language. I should be able to fix this today, though. The language is currently determined according to the extension of the file, so the result should be as follows:

File extension Language shown in Discord
c, h C
cpp, hpp C++

Would it suits your need ?

XLPhere commented 6 years ago

Yeah it would pretty much... but an option to set the display of .h files to C++ would be nice, because a lot of C++ Projects use .h files as headers instead of *.hpp files

echebbi commented 6 years ago

Yes, I understand your point. I'll think about the best way to specify this option.

I'll close this issue as soon as the icon for the C language is available (which should be done by the end of the week) and I'll create a new issue dedicated to the implementation of this option.

echebbi commented 6 years ago

The C language (*.c and *.h files) will be handled in the next 1.0.0 release. I'll provide a way to specify that *.h files are written in C++ as soon as possible.