ionide / FsAutoComplete

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

Code action: suggest to create missing parameter as local binding #1271

Open jkone27 opened 2 months ago

jkone27 commented 2 months ago

Details

When developing code, often we first write some parts and later we "fill them in" with implementations, one example is method parameters, would be great if one could just write the name of the method parameter, and then have a contextual action to create the parameter of the specified type, with maybe for now just the option as a local binding, maybe it could be adjusted to provide more options:

example

image

generate a code suggestion here / action , to generate the non existing local binding for the parameter

Checklist

baronfel commented 2 months ago

This is a great idea, I'd love to see an initial version of a codefix for this if you want to create one!