ballerina-platform / ballerina-library

The Ballerina Library
https://ballerina.io/learn/api-docs/ballerina/
Apache License 2.0
136 stars 64 forks source link

Refactor c2c code actions #7147

Open xlight05 opened 2 years ago

xlight05 commented 2 years ago

Description: We need to refactor c2c code actions to perform following tasks.

  1. validate if build option is set to k8s before suggesting the code action.
  2. Avoid using toString() on parser nodes to get service path.
  3. Stop suggesting code actions on a node that has diagnostics.
  4. Move Code Action implementation to Compiler plugin

Steps to reproduce:

Affected Versions:

OS, DB, other environment details and versions:

Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

xlight05 commented 2 years ago

Task is on hold due to https://github.com/ballerina-platform/ballerina-lang/issues/37853