Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature][Track] KCL support find reference tool #711

Closed
amyXia1994 opened this issue Sep 13, 2023 · 2 comments
Closed

[Feature][Track] KCL support find reference tool #711

amyXia1994 opened this issue Sep 13, 2023 · 2 comments
Assignees
Labels
ide Issues or PRs related to kcl LSP and IDE plugins lsp tool Issues or PRs related to kcl tools inlucding format, lint, validation, document tools, etc. track

Comments

@amyXia1994
Copy link
Contributor

Feature Request

Is your feature request related to a problem? Please describe:

Scenarios that need find reference tool:

  • when writing code in KCL IDE, to find out which files is currently using the target schema/attribute/variable
  • when executing CI test, to locate and filter all the files which have dependent on the changed schema/attribute/variable
  • find reference is also the base of the kcl refactor tool

Describe the feature you'd like:

provide command line tool to find reference of a target variable/schema/attribute.

The input: the path to the variable/schema/attribute definition. For example by using the path selector CLI parameter (-S)

The output: list of all the positions of the variable/schema/attribute references.

Describe alternatives you've considered:

Simply search for the variable/schema/attribute names could help to roughly narrow the ranges to find the references, but this approach tend to mismatch irrelevant texts and the result is really not precise.

Teachability, Documentation, Adoption, Migration Strategy:

@Peefy Peefy added this to the v0.7.0 Release milestone Sep 13, 2023
@amyXia1994
Copy link
Contributor Author

amyXia1994 commented Sep 14, 2023

The support of the reference tool can be broken down into several stages:

@amyXia1994 amyXia1994 changed the title [Feature Request] KCL support find reference tool [Feature] KCL support find reference tool Sep 14, 2023
@Peefy Peefy added this to KCL 2023 Sep 18, 2023
@Peefy Peefy moved this to Backlog in KCL 2023 Sep 18, 2023
@amyXia1994 amyXia1994 moved this from Backlog to In Progress in KCL 2023 Sep 19, 2023
@Peefy Peefy moved this from In Progress to In Review in KCL 2023 Oct 9, 2023
@Peefy Peefy changed the title [Feature] KCL support find reference tool [Feature][Track] KCL support find reference tool Oct 9, 2023
@Peefy Peefy added tool Issues or PRs related to kcl tools inlucding format, lint, validation, document tools, etc. track labels Oct 9, 2023
@Peefy Peefy moved this from In Review to 2023.10 Iteration In Progress in KCL 2023 Oct 9, 2023
@Peefy Peefy moved this from 2023.10 Iteration In Progress to Track Issues in KCL 2023 Oct 9, 2023
@amyXia1994 amyXia1994 added ide Issues or PRs related to kcl LSP and IDE plugins lsp labels Oct 13, 2023
@amyXia1994 amyXia1994 moved this from Track Issues to 2023.10 Iteration Done in KCL 2023 Oct 30, 2023
@amyXia1994
Copy link
Contributor Author

enhancement on the offline index of symbols could be tracked in new issues

@github-project-automation github-project-automation bot moved this from 2023.10 Iteration Done to v0.7.0 Release Done in KCL 2023 Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ide Issues or PRs related to kcl LSP and IDE plugins lsp tool Issues or PRs related to kcl tools inlucding format, lint, validation, document tools, etc. track
Projects
No open projects
Status: v0.7.0 Release Done
Development

No branches or pull requests

2 participants