cadence-tools icon indicating copy to clipboard operation
cadence-tools copied to clipboard

[LS] Add support for code actions

Open SupunS opened this issue 5 years ago • 1 comments

Issue To Be Solved

Code actions provide a convenient way for the users to fix issues in their code.

Suggest A Solution

  • Compiler diagnostics (semantic errors) are generally used to figure out and provide code actions
  • Some of the very useful code-actions are:
    • [ ] Create variables (when an undefined variable is referred)
    • [ ] Change access modifier
    • [ ] Add a type cast or conversion function call when there are incompatible types
    • [ ] Change variable/parameter/return/field type

SupunS avatar Jan 15 '21 06:01 SupunS

Create variables (when an undefined variable is referred)

This seems to be done already.

darkdrag00nv2 avatar Jun 21 '23 20:06 darkdrag00nv2