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

Report diagnostics for unused "using" so that they will be shown properly in ide #5453

Merged
merged 31 commits into from
Feb 19, 2025

Conversation

RodgeFu
Copy link
Contributor

@RodgeFu RodgeFu commented Dec 26, 2024

When "using" and "import" are not needed, dim them and provide quickfix in IDE. (Extracted from the PR #5146 for the unused using part)

Fixes: #3373

@RodgeFu RodgeFu added the ide Issues for VS, VSCode, Monaco, etc. label Dec 26, 2024
@azure-sdk
Copy link
Collaborator

azure-sdk commented Dec 26, 2024

All changed packages have been documented.

  • @typespec/compiler
Show changes

@typespec/compiler - feature ✏️

Support diagnostics for unused using statement

@azure-sdk
Copy link
Collaborator

azure-sdk commented Dec 26, 2024

You can try these changes here

🛝 Playground 🌐 Website 📚 Next docs 🛝 VSCode Extension

@RodgeFu RodgeFu added this pull request to the merge queue Feb 19, 2025
Merged via the queue into microsoft:main with commit e6fbf87 Feb 19, 2025
24 checks passed
@RodgeFu RodgeFu deleted the unused-using branch February 19, 2025 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ide Issues for VS, VSCode, Monaco, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[IDE] For unused using statement, strike thru with yellow line and offer a 💡 quick fix to remove used ones
4 participants