Fix VSCode protocol `scopes` command, add `expensive` field.
authorMikhail Kurinnoi <m.kurinnoi@samsung.com>
Tue, 13 Sep 2022 14:04:16 +0000 (17:04 +0300)
committerAlexander Soldatov/Platform Lab /SRR/Staff Engineer/Samsung Electronics <soldatov.a@samsung.com>
Fri, 16 Sep 2022 15:57:09 +0000 (18:57 +0300)
Related to https://github.com/Samsung/netcoredbg/issues/104

src/protocols/vscodeprotocol.cpp

index 4b8aa5b5566bd7be3588b1c071df268647997b0e..031f0ae59a01cfe4b03334c3244c4e3ac2726af2 100644 (file)
@@ -96,7 +96,8 @@ void to_json(json &j, const Thread &t) {
 void to_json(json &j, const Scope &s) {
     j = json{
         {"name",               s.name},
-        {"variablesReference", s.variablesReference}};
+        {"variablesReference", s.variablesReference},
+        {"expensive",          false}};
 
     if (s.variablesReference > 0)
     {