eclipse-discord-integration icon indicating copy to clipboard operation
eclipse-discord-integration copied to clipboard

Customize the file extensions associated to the languages

Open echebbi opened this issue 7 years ago • 2 comments

Originally ask by @XLPmc in #48.

When developping in C++ it can happen that developers use the .h extension to define C++ headers. As a consequence, since the language is determined by the extension of the file, Discord always shows Programming in C while the actual programming language is C++.

It would be convenient to add an option to project Properties page allowing the developer to specify that the language used in this project is C++ even if the files have the .h extension.

echebbi avatar Aug 22 '18 23:08 echebbi

I don't have time to implement this at the moment.

Feel free to submit a PR if you want to contribute to the project.

echebbi avatar Apr 14 '19 13:04 echebbi

On second thought, I really don't want to implement something as specific as "provide X workaround for Y language". However, I can provide a way to customize the file extensions associated to each language, e.g. a table as follows:

Programming language File extensions Special files
Java .java
C++ .cpp, .h
Docker Dockerfile

I updated the name of the issue accordingly. Hopefully I'll find the time to implement it soon.

echebbi avatar Apr 30 '20 22:04 echebbi