-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Defines "org.eclipse.core.runtime.text" GenericEditor #17
Comments
I've proposed a patch for https://bugs.eclipse.org/bugs/show_bug.cgi?id=507772 . With this, you can simply have the TMPresentationReconciler throw an IllegalArgumentError in the |
And throw an exception in install if it cannot apply properly (missing grammar). Signed-off-by: Mickael Istria <[email protected]>
In order to have this, TMPresentationReconciler mustn't show the pop-up message in case of missing grammar. I believe this piece of logic, showing the pop-up in case of missing grammar, makes more sense inside the TMEditor or someplace else that doesn't cascade to generic editor. |
When you register with extension point a grammar (with bad information), I think it's cool to see the error in the editor, no? |
Yes, in case the grammar is erroneous, it's fine to show an error because either it happens during devleopment time and the developer can fix it, or it's a user-defined association and user can remove it. |
Once GenericEditor presentationReconcilers will support "org.eclipse.core.runtime.text" to bind IPresentationReconclier (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=507772), the org.eclipse.textmate4e.ui could declare in the plugin.xml:
It will give the capability to register a TextMate grammar with UI preferences and when user will open a file with GenericEditor, the syntax coloration should be done.
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=507753#c2
The text was updated successfully, but these errors were encountered: