WIP support launch.json inputs.

This commit is contained in:
Martín Lucas Golini
2025-01-16 01:20:49 -03:00
parent 6fe9d34c4a
commit 1765842504
3 changed files with 81 additions and 2 deletions

View File

@@ -37,6 +37,14 @@ struct DapTool {
bool supportsSourceRequest{ false };
};
struct DapConfigurationInput {
std::string id;
std::string description;
std::string type;
std::string defaultValue;
std::vector<std::string> options;
};
class DebuggerPlugin : public PluginBase {
public:
static PluginDefinition Definition() {
@@ -96,6 +104,7 @@ class DebuggerPlugin : public PluginBase {
StatusDebuggerController::State mDebuggingState{ StatusDebuggerController::State::NotStarted };
std::vector<std::string> mExpressions;
std::shared_ptr<VariablesHolder> mExpressionsHolder;
UnorderedMap<std::string, DapConfigurationInput> mDapInputs;
// Begin Hover Stuff
Uint32 mHoverWaitCb{ 0 };
@@ -215,6 +224,9 @@ class DebuggerPlugin : public PluginBase {
void resetExpressions();
void closeProject();
std::unordered_map<std::string, DapConfigurationInput>
needsToResolveInputs( nlohmann::json& json );
};
} // namespace ecode