For some time now, I’ve noticed a certain feature of this extension : a lightbulb pops up now and then when I’m writing OCaml code, perturbating the text window and suggesting some weird ways of rewriting the code, and usually finding fault in perfectly correct and clear OCaml code, as shown in the example below.
I see no use for this feature (perhaps it’s targeted towards Reason-ML users ?) and I would really like to disable it. But I couldn’t find anything about it in the Settings.
Interesting. Well, this is the official OCaml Platform VSCode extension, it’s not targeted at ReasonML users specifically. Looking through the extension’s repo, I don’t see any mention of ‘Show Fixes’, so not sure where that could be coming from. Perhaps the extension developers will chime in.
The first destructuring decribed in the file you link seems to be the one that is being suggested in the post. Maybe there is something broken in the logic or in the way those suggestions work right now.
Does the bulb suggest to destruct with a match any destructurable object — even when you just want to define or apply a function to it — @jonathandoyle ?
I’m not sure where I should write this- I see lots of specific .json files for a specific extension, but is there a global “.json” ?
Anyway, I finally found out where the feature is located in Settings - it’s called Editor:Lightbulb and it’s under Text Editor ; the reason I didn’t see it the first time is that it’s not under Ocaml. I unchecked the box, that should do it …