codemap.vscode
codemap.vscode copied to clipboard
Cannot load references in c#
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?
Hi Benedek,
Can you please describe the test case? I am not sure what you mean by " i try to load all references" .
yeah ofc,
so suppose we have a function with 2 references
then we add it to the map
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
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.
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".
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.
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.