Greetings.
my goal is to amend the External Code Formatter Plugin and to support
SQL via JSQLFormatter (please
see https://manticore-projects.github.io/jsqlformatter/ for details).
I have actually no idea, how to do that, but I managed to write a new
Formatter Service, compile and deploy the plugin and to show the new
Formatter Options:
It is bound to the MimeType SQL("application/sql", "text/sql", "text/x-
sql", "text/plain").
The problem is: when I open any SQL file and click on "Format", exactly
NOTHING happens. No error message either. It does not look like I would
trigger any formatting for this SQL File and I suspect that the
MimeType does not match.
Please can anyone lend me a helping hand, on how to trigger the Format
Action for SQL files? What MimeType to use? Where to dig?
Right now I am a bit lost honestly.
Thank you a lot in advance, especially for your patience.
Best regards
Andreas