Finish input support for launch.json file.

More fixes.
This commit is contained in:
Martín Lucas Golini
2025-01-17 00:47:12 -03:00
parent 5396a12353
commit 4e9a47876a
4 changed files with 112 additions and 29 deletions

View File

@@ -161,7 +161,8 @@ class DebuggerPlugin : public PluginBase {
void exitDebugger();
void replaceKeysInJson( nlohmann::json& json, int randomPort );
void replaceKeysInJson( nlohmann::json& json, int randomPort,
const std::unordered_map<std::string, std::string>& solvedInputs );
void onRegisterEditor( UICodeEditor* ) override;
@@ -227,6 +228,13 @@ class DebuggerPlugin : public PluginBase {
std::unordered_map<std::string, DapConfigurationInput>
needsToResolveInputs( nlohmann::json& json );
void resolveInputsBeforeRun( std::unordered_map<std::string, DapConfigurationInput> inputs,
DapTool debugger, DapConfig config,
std::unordered_map<std::string, std::string> solvedInputs = {} );
void prepareAndRun( DapTool debugger, DapConfig config,
std::unordered_map<std::string, std::string> solvedInputs );
};
} // namespace ecode