logic: show whole file in CodeView when file node is active

This commit is contained in:
Eberhard Graether
2015-03-24 23:01:40 +01:00
parent 0d2a76c2eb
commit eb9092a07f
6 changed files with 32 additions and 14 deletions
+2 -11
View File
@@ -957,17 +957,8 @@ TokenLocationCollection Storage::getTokenLocationsForTokenIds(const std::vector<
if (token->isNode() && dynamic_cast<Node*>(token)->isType(Node::NODE_FILE))
{
TokenLocationFile* locationFile =
m_locationCollection.findTokenLocationFileByPath(dynamic_cast<Node*>(token)->getFullName());
if (locationFile)
{
locationFile->forEachTokenLocation(
[&ret](TokenLocation* tokenLocation) -> void
{
ret.addTokenLocationAsPlainCopy(tokenLocation);
}
);
}
ret.addTokenLocationFileAsPlainCopy(m_locationCollection.findTokenLocationFileByPath(
dynamic_cast<Node*>(token)->getComponent<TokenComponentFilePath>()->getFilePath()));
}
else
{