Some debugger improvements for node dap.

Fixed a bug in TextDocument that created new history in the undo/redo stack when not doing any operation when trying to cut.
This commit is contained in:
Martín Lucas Golini
2025-06-26 20:19:17 -03:00
parent 03d2a133f4
commit df0a58c34e
6 changed files with 123 additions and 51 deletions

View File

@@ -198,7 +198,7 @@ class DebuggerPlugin : public PluginBase {
void replaceKeysInJson( nlohmann::json& json, int randomPort,
const std::unordered_map<std::string, std::string>& solvedInputs );
std::vector<std::string>
std::pair<bool, std::vector<std::string>>
replaceKeyInString( std::string val, int randomPort,
const std::unordered_map<std::string, std::string>& solvedInputs );
@@ -285,7 +285,7 @@ class DebuggerPlugin : public PluginBase {
void onDocumentLineMove( TextDocument* doc, const Int64& fromLine, const Int64& toLine,
const Int64& numLines );
void replaceInVal( std::string& val, const std::optional<ProjectBuildStep>& runConfig,
bool replaceInVal( std::string& val, const std::optional<ProjectBuildStep>& runConfig,
ProjectBuild* buildConfig, int randomPort );
};