Hello, i am currently developing a plugin for Rider for the company i work at.
Basically i want to be able to select a string and a dictionary from the variables list, read their values and replace the values from the dictionary in the selected string.
I am already able to do most of that, but the biggest problem i have is getting the variables values.
At the moment, i access them like so:
val nodes = XDebuggerTreeActionBase.getSelectedNodes(e.dataContext)
nodes.filterIsInstance().forEach { node →
when (builder.classifyNode(node)) {
NodeType.SqlText → builder.sql = node.rawValue?.toString().orEmpty()
else → builder.collectParams(node)
}
The rawValue sadly does not contain the real variable value, for instance when the string value is really long, it cuts off with … at some place. Is there any way, to just get the real current value of the variable?