Skip to content

Swift: Drop support for plaintext diagnostics (and helpLinks). #13224

Merged
sashabu merged 1 commit intomainfrom
sashabu/tsp-empty-help-links
May 19, 2023
Merged

Swift: Drop support for plaintext diagnostics (and helpLinks). #13224
sashabu merged 1 commit intomainfrom
sashabu/tsp-empty-help-links

Conversation

@sashabu
Copy link
Contributor

@sashabu sashabu commented May 19, 2023 •

Diagnostics can include either a plaintextMessage or a markdownMessage. For plaintext messages, we can also include helpLinks (whereas for Markdown, the links are embedded in the message). We're using Markdown everywhere, and I noticed all our helpLinks have a "" as the only link. To "fix" that, this PR drops support for plaintextMessage and helpLinks in the Swift extractor entirely.

@github-actions github-actions bot added the Swift label May 19, 2023
@sashabu sashabu force-pushed the sashabu/tsp-empty-help-links branch from 1b538b5 to 33cdbcd Compare May 19, 2023 14:02
@sashabu sashabu changed the title Swift: Remove empty helpLinks. Swift: Drop support for plaintext diagnostics (and helpLinks). May 19, 2023
Base automatically changed from redsun82/swift-diagnostics-wording to main May 19, 2023 14:15
The recommended option is Markdown diagnostics, and we have already migrated everything to emit them. The empty help link we're currently emitting everywhere is a bug.
@sashabu sashabu force-pushed the sashabu/tsp-empty-help-links branch from 33cdbcd to b3e76d6 Compare May 19, 2023 14:16
@sashabu sashabu marked this pull request as ready for review May 19, 2023 14:16
@sashabu sashabu requested a review from a team as a code owner May 19, 2023 14:16
Copy link
Contributor

@MathiasVP MathiasVP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment (hopefully with a trivial answer 🤞), but otherwise LGTM!

@sashabu sashabu merged commit f943502 into main May 19, 2023
@sashabu sashabu deleted the sashabu/tsp-empty-help-links branch May 19, 2023 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants