Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open VariableUtils API #9

Merged
merged 2 commits into from
Jun 20, 2023

Conversation

iusildra
Copy link

In this pr, we needed to be able to modify the expression of an array element when adding it to watches. It was not possible with the current implementation so I opened it by transforming VariableUtils (that contains the parsing method) into a provider to use my own implementation for Scala

@iusildra iusildra force-pushed the open-variable-utils-api branch from 8bf35c6 to 58a62db Compare June 14, 2023 10:11
@iusildra iusildra force-pushed the open-variable-utils-api branch from 58a62db to 00887a7 Compare June 19, 2023 15:29
@@ -78,6 +79,7 @@ public CompletableFuture<Response> handle(Command command, Arguments arguments,
boolean showStaticVariables = DebugSettings.getCurrent().showStaticVariables;

Map<String, Object> options = variableFormatter.getDefaultOptions();
IVariableProvider evaluateNameUtils = context.getProvider(IVariableProvider.class);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
IVariableProvider evaluateNameUtils = context.getProvider(IVariableProvider.class);
IVariableProvider variableProvider = context.getProvider(IVariableProvider.class);

@iusildra iusildra merged commit 23df7eb into scalacenter:0.34.0+x Jun 20, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants