Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 19, 2023

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