I don't understand what you are doing. I have set up the following test, using VS2015 and VA 2366.0. In the file "test_simple.h" I have the code:
class testPeekAndFindRef
{
private:
int m_nValue;
public:
// try this as the target of IDE peek
// and also as the target of VA Find References
void testPeekHere(int nSetValue)
{
m_nValue = nSetValue;
}
void setValueOne();
void setValueTwo();
void setValueThree();
void setValueFour();
};
and then in the matching file "test_simple.cpp" I have the code:
void testPeekAndFindRef::setValueOne()
{
// test - trigger "Peak Definition" here on this function call
// then make sure keyboard focus is in this cpp file
// and trigger VA Find References on the function call
// jump to .h or .cpp file references in Find References Results
testPeekHere(1);
}
void testPeekAndFindRef::setValueTwo()
{
testPeekHere(2);
}
void testPeekAndFindRef::setValueThree()
{
testPeekHere(3);
}
void testPeekAndFindRef::setValueFour()
{
testPeekHere(4);
}
I open the peak definition window, as explained in the comments. This shows part of the .h file inside the .cpp file. If I jump to a .h file reference via Find References Results then the current file changes to the .h file, as normal. When I jump to a .cpp file reference via Find References Results I jump back to the cpp file, and the peak definition block is still visible.
Am I testing the correct thing here?