Refactor how App is exposed. Expose more functionality to the Plugins.

This commit is contained in:
Martín Lucas Golini
2024-12-31 19:01:32 -03:00
parent 9fc6078c61
commit 469ca05e9f
16 changed files with 395 additions and 180 deletions

View File

@@ -1,7 +1,7 @@
#include "debuggerplugin.hpp"
#include "../../projectbuild.hpp"
#include "busprocess.hpp"
#include "dap/debuggerclientdap.hpp"
#include "debuggerplugin.hpp"
#include <eepp/system/filesystem.hpp>
#include <eepp/system/scopedop.hpp>
#include <eepp/ui/uidropdownlist.hpp>
@@ -303,7 +303,8 @@ void DebuggerPlugin::replaceKeysInJson( nlohmann::json& json ) {
static constexpr auto KEY_CWD = "${cwd}";
static constexpr auto KEY_ENV = "${env}";
static constexpr auto KEY_STOPONENTRY = "${stopOnEntry}";
auto runConfig = getManager()->getProjectBuildManager()->getCurrentRunConfig();
auto runConfig =
getManager()->getPluginContext()->getProjectBuildManager()->getCurrentRunConfig();
for ( auto& j : json ) {
if ( j.is_object() ) {