faceair / atom-goto-definition

⚠️⚠️⚠️ DEPRECATED
https://atom.io/packages/goto-definition
GNU General Public License v2.0
99 stars 51 forks source link

"This language is not supported" message on known language with non-standard-extension file #90

Open chris-aeviator opened 7 years ago

chris-aeviator commented 7 years ago

Due to the selection of the current file's language by file extension the plugin is not able to work when a file has a different extension than the standard one of the programming language. This is often the case when using frameworks: e.g. a Drupal Theme File is a PHP file with the file extension .theme but syntax highlighting etc. still are able to treat it as a PHP file.

Therefore the language detection mechanism should also or even primarily check by the syntax highlighting selected, through it is very common that a developer would set the correct language when opening a non-standard-extension. Afaik the syntax highlighting selection in atom (footer) is a core feature.

syntax_highlighting