[lldb-vscode] correctly handle multiple sourceMap entries

Summary:
`lldb-vscode` concatenates a string of sourceMap entries
specified in the config, but fails to put a space between
each entry, which causes the settings command to fail.
This patch adds a space between each mapping.

Patch by Richard Howell

Differential Revision: https://reviews.llvm.org/D67569

llvm-svn: 373016
This commit is contained in:
Alex Langford 2019-09-26 21:18:37 +00:00
parent 486cd9a90d
commit 7dfb095b88
1 changed files with 2 additions and 2 deletions

View File

@ -436,7 +436,7 @@ void SetSourceMapFromArguments(const llvm::json::Object &arguments) {
}
auto mapFrom = GetAsString((*mapping)[0]);
auto mapTo = GetAsString((*mapping)[1]);
strm << "\"" << mapFrom << "\" \"" << mapTo << "\"";
strm << "\"" << mapFrom << "\" \"" << mapTo << "\" ";
}
} else {
if (ObjectContainsKey(arguments, "sourceMap")) {
@ -2582,7 +2582,7 @@ const std::map<std::string, RequestCallback> &GetRequestHandlers() {
#undef REQUEST_CALLBACK
return g_request_handlers;
}
} // anonymous namespace
int main(int argc, char *argv[]) {