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

Cannot load references in c# #91

Open
PappBenedek opened this issue Nov 22, 2023 · 4 comments
Open

Cannot load references in c# #91

PappBenedek opened this issue Nov 22, 2023 · 4 comments

Comments

@PappBenedek
Copy link

Hi folks,

I found this extension a few days ago, and I really liked the idea, so today I decided to try it out.
I can add any function to the map itself thats cool, bot if i try to load all references it just not finding any. so the extension says "All known references are already on the map." but clearly it is not the case. Then if i try to load another method from the map then "The selected symbol definition could not be found." any ideas?

@oleg-shilo
Copy link
Owner

Hi Benedek,

Can you please describe the test case? I am not sure what you mean by " i try to load all references" .

@PappBenedek
Copy link
Author

yeah ofc,
so suppose we have a function with 2 references
kép
then we add it to the map
kép
the underlined button should load all places where this function is called if i'm not mistaken.
this results the: "All known references are already on the map."
but the map still only contains the one function that we loaded earlier.
lets say we wanna find out where else one of the function inside been called
kép
clicking on the get external .... function would result the error: "The selected symbol definition could not be found."

I hope its a bit clearer now, thanks in advance.

@oleg-shilo
Copy link
Owner

I am afraid you are dealing with some user experiences not provided by other extensions than CodeMap.

CodeMap is kind of a "read-only" extension that visualizes the codedom tree of the current document. Thus it does not even deal with things like "code references".

image

Thus "All known references are already on the map." is referring top something else. I even checked the codebase and there is no reference to this error message.

@oleg-shilo
Copy link
Owner

I do not want to dismiss it too early so, let's start again.

The step #2 in your description: "then we add it to the map". What does it mean?

The extension reads the doc and builds the tree. Thus user cannot add any item to the tree explicitly.

I am also puzzled about this:

the underlined button should load all places where this function is called if i'm not mistaken.

Regarding the two buttons "Add references" and "Add related", I have no idea what are these buttons are.

Also the extension does not show the places where the function is called but only the one place where it is defined.

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

No branches or pull requests

2 participants