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

[LS] Support more code-suggestions/auto-completions

Open SupunS opened this issue 5 years ago • 0 comments

Issue To Be Solved

It would be really nice to have code-suggestions and auto-completions for more prominent use cases.

Suggest A Solution

  • Can support auto-completions at different levels. e.g: Top-level, statement-level, expression-level, etc.
  • Filter the results based on the context. e.g:
    • At the top-level, statements shouldn't be provided as suggestions.
    • Similarly, when the cursor is inside a contract, it should only provide suggestions of the constructs that are allowed within a contract.
  • Support completions/suggestions when there are syntax errors.
  • May require to introduce resilient parsing to support these.

SupunS avatar Jan 15 '21 05:01 SupunS