Skip to content

Conversation

howlger
Copy link
Contributor

@howlger howlger commented Apr 3, 2022

In the org.eclipse.core.contenttype.contentTypes extension point, the file-extensions attribute must not contain . and * since extension means here the string after the last . and the file-names attribute does not support the * wildcard in contrast to the file-patterns attribute.

Examples:

  • file-extensions="eslintrc" matches the following file names: .eslintrc, foo.eslintrc, etc.
  • file-patterns="*.eslintrc.json" matches the following file names: .eslintrc.json, foo.eslintrc.json, etc.
  • file-extensions="eslintrc.json" does not match any filename

In the "org.eclipse.core.contenttype.contentTypes" extension point
(<https://help.eclipse.org/latest/topic/org.eclipse.platform.doc.isv/reference/extension-points/org_eclipse_core_contenttype_contentTypes.html>),
the "file-extensions" attribute must not contain '.' and '*' since
extension means here the string after the last '.' and the "file-names"
attribute does not support the '*' wildcard in contrast to the
"file-patterns" attribute.

Examples:
- file-extensions="eslintrc" matches the following file names:
  ".eslintrc", "foo.eslintrc", etc.
- file-patterns="*.eslintrc.json" matches the following file names:
  ".eslintrc.json", "foo.eslintrc.json", etc.
- file-extensions="eslintrc.json" does not match any filename
@mickaelistria mickaelistria merged commit d307a8f into eclipse-wildwebdeveloper:master Apr 3, 2022
@mickaelistria
Copy link
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants