Skip to content
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

Warn when using console logging methods #1241

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

plemarquand
Copy link
Contributor

Add an ESLint warning when using methods like console.log in the extension code. It is preferable to use the SwiftOutputChannel so that these logs are captured by the extension diagnostics mechanism, and so that they are all grouped together in the same place when debugging.

Sources under the tests directory do not have this restriction.

Add an ESLint warning when using methods like console.log in the
extension code. It is preferable to use the `SwiftOutputChannel` so that
these logs are captured by the extension diagnostics mechanism, and so
that they are all grouped together in the same place when debugging.

Sources under the tests directory do not have this restriction.
@award999 award999 merged commit b229e9c into swiftlang:main Dec 10, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants