|
33 | 33 | import com.microsoft.java.debug.core.adapter.IEvaluationProvider;
|
34 | 34 | import com.microsoft.java.debug.core.adapter.IStackFrameManager;
|
35 | 35 | import com.microsoft.java.debug.core.adapter.variables.IVariableFormatter;
|
| 36 | +import com.microsoft.java.debug.core.adapter.variables.IVariableProvider; |
36 | 37 | import com.microsoft.java.debug.core.adapter.variables.JavaLogicalStructure;
|
37 | 38 | import com.microsoft.java.debug.core.adapter.variables.JavaLogicalStructure.LogicalStructureExpression;
|
38 | 39 | import com.microsoft.java.debug.core.adapter.variables.JavaLogicalStructure.LogicalVariable;
|
@@ -78,6 +79,7 @@ public CompletableFuture<Response> handle(Command command, Arguments arguments,
|
78 | 79 | boolean showStaticVariables = DebugSettings.getCurrent().showStaticVariables;
|
79 | 80 |
|
80 | 81 | Map<String, Object> options = variableFormatter.getDefaultOptions();
|
| 82 | + IVariableProvider evaluateNameUtils = context.getProvider(IVariableProvider.class); |
81 | 83 | VariableUtils.applyFormatterOptions(options, varArgs.format != null && varArgs.format.hex);
|
82 | 84 | IEvaluationProvider evaluationEngine = context.getProvider(IEvaluationProvider.class);
|
83 | 85 |
|
@@ -260,12 +262,12 @@ public CompletableFuture<Response> handle(Command command, Arguments arguments,
|
260 | 262 | String typeName = ((ObjectReference) containerNode.getProxiedVariable()).referenceType().name();
|
261 | 263 | // TODO: This replacement will possibly change the $ in the class name itself.
|
262 | 264 | typeName = typeName.replaceAll("\\$", ".");
|
263 |
| - evaluateName = VariableUtils.getEvaluateName(javaVariable.evaluateName, "((" + typeName + ")" + containerEvaluateName + ")", false); |
| 265 | + evaluateName = evaluateNameUtils.getEvaluateName(javaVariable.evaluateName, "((" + typeName + ")" + containerEvaluateName + ")", false); |
264 | 266 | } else {
|
265 | 267 | if (containerEvaluateName != null && containerEvaluateName.contains("%s")) {
|
266 | 268 | evaluateName = String.format(containerEvaluateName, javaVariable.evaluateName);
|
267 | 269 | } else {
|
268 |
| - evaluateName = VariableUtils.getEvaluateName(javaVariable.evaluateName, containerEvaluateName, containerNode.isIndexedVariable()); |
| 270 | + evaluateName = evaluateNameUtils.getEvaluateName(javaVariable.evaluateName, containerEvaluateName, containerNode.isIndexedVariable()); |
269 | 271 | }
|
270 | 272 | }
|
271 | 273 |
|
|
0 commit comments