resharper-fsharp icon indicating copy to clipboard operation
resharper-fsharp copied to clipboard

Generate signature file

Open nojaf opened this issue 3 years ago • 1 comments

Hello @auduchinok, I'd like to expose the GenerateSignature functionality from FCS to easily add a signature file for a single file.

This first commit contains some horrible pseudo code to illustrate what I'm after. The feature:

  • Should be executable if there is no signature file present.
  • Should generate the signature file (using the FCS).
  • Should update the fsproj to include the signature file.
  • (Should maybe format the generated file, as the output isn't always that pretty).

Would you be ok with having this? If so, do you have any pointers on how to best approach this?

nojaf avatar Jul 05 '22 13:07 nojaf

@auduchinok I'm able to add the new signature file before the implementation file. However, there is a small glitch with the UI: image

Library.fsi is the new file and is shown at the top. It is inserted correctly into the fsproj thought. Thanks again for the pointers!

nojaf avatar Jul 28 '22 12:07 nojaf