Swift: reword TSP diagnostics after doc team review

This commit is contained in:
Paolo Tranquilli
2023-05-16 17:52:02 +02:00
parent fc9fe13278
commit 42d40900d3
14 changed files with 55 additions and 59 deletions

View File

@@ -42,7 +42,7 @@ nlohmann::json SwiftDiagnostic::json(const std::chrono::system_clock::time_point
{"severity", severityToString(severity)},
{"helpLinks", std::vector<std::string_view>(absl::StrSplit(helpLinks, ' '))},
{format == Format::markdown ? "markdownMessage" : "plaintextMessage",
absl::StrCat(message, ".\n\n", action)},
absl::StrCat(message, "\n\n", action)},
{"timestamp", fmt::format("{:%FT%T%z}", timestamp)},
};
if (location) {

View File

@@ -91,8 +91,8 @@ struct SwiftDiagnostic {
// create a JSON diagnostics for this source with the given `timestamp` and `message`
// Depending on format, either a plaintextMessage or markdownMessage is used that includes both
// the message and the action to take. A dot '.' is appended to `message`. The id is used to
// construct the source id in the form `swift/<prog name>/<id>`
// the message and the action to take. The id is used to construct the source id in the form
// `swift/<prog name>/<id>`
nlohmann::json json(const std::chrono::system_clock::time_point& timestamp,
std::string_view message) const;