[editor] Move sql identifier object to the beginning of the tooltip
}
}
if (token.parseLocation.identifierChain) {
- tooltipText += ' - ' + $.map(token.parseLocation.identifierChain, function (identifier) {
+ var sqlIdentifier = $.map(token.parseLocation.identifierChain, function (identifier) {
return identifier.name
}).join('.');
if (colType) {
- tooltipText += ' (' + colType + ')';
+ sqlIdentifier += ' (' + colType + ')';
}
+ tooltipText = sqlIdentifier + ' - ' + tooltipText;
} else if (token.parseLocation.function) {
- tooltipText += ' - ' + token.parseLocation.function;
+ tooltipText = token.parseLocation.function + ' - ' + tooltipText;
}
contextTooltip.show(tooltipText, endCoordinates.pageX, endCoordinates.pageY + editor.renderer.lineHeight + 3);
}
