microsoft / typespec

https://typespec.io/
MIT License
4.53k stars 220 forks source link

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

Open RodgeFu opened 3 days ago

RodgeFu commented 3 days ago

When "using" and "import" are not needed, dim them and provide quickfix in IDE.

related issues:

3373 , #4861

azure-sdk commented 3 days ago

All changed packages have been documented.

Show changes ### `@typespec/compiler` - _feature_ [✏️](https://github.com/RodgeFu/typespec/edit/unused-import-namespace/.chronus/changes/unused-import-namespace-2024-10-18-21-32-11.md?pr=/microsoft/typespec/pull/5146) > Support diagnostics for unused import and using statements
azure-sdk commented 3 days ago

You can try these changes here

🛝 Playground 🌐 Website 📚 Next docs