codefori / vscode-rpgle

RPGLE language tools for VS Code
MIT License
39 stars 18 forks source link

Refactor subroutine under new Code Action #293

Closed worksofliam closed 7 months ago

worksofliam commented 7 months ago

Previously, the cleanup of subroutines could only be done when the linter was enabled.

Now the linter will still complain about subroutines, but we provide a new Code Action, similar to extract to procedure, but for subroutines. It will convert the subroutine to a procedure and create parameters for references variables of certain types.

image