codemap.vscode icon indicating copy to clipboard operation
codemap.vscode copied to clipboard

Cannot load references in c#

Open PappBenedek opened this issue 1 year ago • 4 comments

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?

PappBenedek avatar Nov 22 '23 11:11 PappBenedek

Hi Benedek,

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

oleg-shilo avatar Nov 23 '23 09:11 oleg-shilo

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.

PappBenedek avatar Nov 23 '23 12:11 PappBenedek

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 avatar Nov 23 '23 23:11 oleg-shilo

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.

oleg-shilo avatar Nov 24 '23 01:11 oleg-shilo