ui: fixed display of links to missing symbols in project description
This commit is contained in:
@@ -707,9 +707,9 @@ std::vector<std::string> CodeController::getProjectDescription(TokenLocationFile
|
||||
NameHierarchy nameHierarchy = NameHierarchy::deserialize(serializedName);
|
||||
Id tokenId = m_storageAccess->getIdForNodeWithNameHierarchy(nameHierarchy);
|
||||
|
||||
std::string nameString = nameHierarchy.getQualifiedName();
|
||||
if (tokenId > 0)
|
||||
{
|
||||
std::string nameString = nameHierarchy.getQualifiedName();
|
||||
line.replace(posA, posB - posA + 1, nameString);
|
||||
locationFile->addTokenLocation(
|
||||
0, tokenId,
|
||||
@@ -717,6 +717,10 @@ std::vector<std::string> CodeController::getProjectDescription(TokenLocationFile
|
||||
startLineNumber + i, posA + nameString.size()
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
line.replace(posA, posB - posA + 1, "[symbol not found (" + nameString + ")]");
|
||||
}
|
||||
|
||||
pos = posA + serializedName.size();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user