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

Go to definition for symbols in declaration and variable expansion syntax in the current file and included files #9

Merged

Conversation

WilsonZiweiWang
Copy link
Contributor

@WilsonZiweiWang WilsonZiweiWang commented Nov 29, 2023

Refactored the GlobalDeclaration objects in order to provide the go to definition for symbols with multi-sources. Also worked on extra refactoring since some features depend on this object.

Now the go to definition is working on variables in either declaration and variable expansion syntax.

sample results:
Declaration
image
Variable expansion
image

Caveat: Fixed by 42277dd
The go to definition won't show the sources in the included files before the scan completes. However, when the scan completes, the process to extract the definition location has finished. Additional input in the document is required to trigger the analyze() again to re-extract the definition locations.

~~Possible Solution: ~~
Trigger another analyze() when the scan completes.

idillon-sfl
idillon-sfl previously approved these changes Nov 30, 2023
Copy link
Member

@deribaucourt deribaucourt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM except the last commit which won't be necessary

@WilsonZiweiWang WilsonZiweiWang merged commit ece8e93 into yoctoproject:staging Dec 1, 2023
1 check passed
@WilsonZiweiWang WilsonZiweiWang deleted the Refactor-SymbolScanner branch December 1, 2023 17:37
Freed-Wu pushed a commit to Freed-Wu/coc-bitbake that referenced this pull request Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants