Change lldb-vscode to use the `expression` command for generating completions, instead
of the `p` alias.
Aliases are user overrideable, and even deletable, but the `expression` command is
unchangeable.
See D141539 where a similar replacement was done to tests.
Differential Revision: https://reviews.llvm.org/D145437
text = text.substr(1);
actual_column--;
} else {
- text = "p " + text;
- actual_column += 2;
+ char command[] = "expression -- ";
+ text = command + text;
+ actual_column += strlen(command);
}
lldb::SBStringList matches;
lldb::SBStringList descriptions;