eclipse / tm4e

TextMate support in Eclipse IDE
https://projects.eclipse.org/projects/technology.tm4e
Eclipse Public License 2.0
87 stars 56 forks source link

Stupid github UI created this... Sorry #708

Closed iloveeclipse closed 6 months ago

iloveeclipse commented 6 months ago
          Ok, I could reproduce it. As I suspected, the issue is in the Eclipse Platform. When querying content types for a file, eventually [ContentTypeCatalog#selectMatchingByName](https://github.com/eclipse-platform/eclipse.platform/blob/e7069db92859e15a44852ff753b9edeec2c1d7ed/runtime/bundles/org.eclipse.core.contenttype/src/org/eclipse/core/internal/content/ContentTypeCatalog.java#L700-L729) will be invoked. 

When this method is called with the file extension "txt" it will return the directly mapped contenttype org.eclipse.core.runtime.text and all child content types that have no "builtInAssociations", e.g. have no file-extensions, file-patterns, file-names defined. So it will return these additional content types if the language pack is installed:

I don't think this behavior is correct.

Originally posted by @sebthom in https://github.com/eclipse/tm4e/issues/703#issuecomment-1944801545