ionide / FsAutoComplete

F# language server using Language Server Protocol
Other
391 stars 151 forks source link

Scaffold codefix #1158

Closed nojaf closed 10 months ago

nojaf commented 10 months ago

WHAT

🤖 Generated by Copilot at 3da98e3

This pull request adds a new build target for scaffolding code fixes for the FsAutoComplete project. It uses the Fantomas.Core package to format the generated F# code and updates the build project files accordingly. It also improves the readability and consistency of the ./build/Program.fs file.

🤖 Generated by Copilot at 3da98e3

Sing, O Muse, of the skillful build project, the work of many hands That crafts the code and tests the tools, and helps the F# community How they added ScaffoldCodeFix, a mighty and useful target That generates the files and references for fixing errors with ease

:sparkles::memo::hammer:

WHY

HOW

🤖 Generated by Copilot at 3da98e3

Related to https://github.com/fsharp/FsAutoComplete/issues/1156. I'm working on a FAKE target that scaffolds are the right files to write a new code fix.

See 194fe5d90916b1097b7135ca5de542041b6172ca for an example of usage.

TODO:

nojaf commented 10 months ago

I'm happy with this, please review it. @jkone27 it would also be interesting to hear how much of the sample code (when you scaffold a code fix) makes sense.