Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[flux-dev] QuickFix prototype in Github

Hello,

I have pushed a first cut prototype of a quickfix prototype here: https://github.com/jarthana/flux

Even for a prototype, this is in initial stage and I have added only the JDT side of things. Just so people can try out this feature, I have put some stuff in the embeddededitor.js.

Currently the way the feature can be used is:

1. Keep the cursor at the problem location and press F6 - this will display the suggested quick fixes as bullet list in a hover.
2. Keep the cursor at the problem location and press Ctrl + F6 - This will compute the quick fixes and apply the first quick fix automatically and rewrite the file being edited.

The way I see the above use cases being integrated eventually: The quick fix service will cache the last quick fixes it sent to the editor in user session. The quick fixes are recognized by an ID, which will be sent back to the JDT service when the user selects one of them in the editor. Upon receiving confirmation, the fix will be applied.

I have also put up a demo of the prototype here: http://youtu.be/DfQTuX2Kd8c

Regards,
Jay

Back to the top