You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since diagnostics are used as a context for the code action provider would be cool if a extension can provide a data field on the diagnostic. It could then annotate a diagnostic as fixable and have an easy computation path for computing code actions. Right now I need to remember hash maps, produce artificial keys, ...
yeah, the data key is called code... Unsure if we should overload the Diagnostics-object with that. I understand your desire for simpler programming but from an OO design it might be a little bloated. To me it sounds like you have the perfect use case for WeakMap
I am not leaking things in the map. It is just overhead to maintain it in terms of memory and performance. I can't use the code field since I will in the error code. And there is not guarantee in eslint that all errors with the same code are all fixable
This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider.
Activity
dbaeumer commentedon Apr 13, 2017
Would allow some further optimization now that we trigger code actions more often.
jrieken commentedon Apr 13, 2017
yeah, the data key is called
code... Unsure if we should overload theDiagnostics-object with that. I understand your desire for simpler programming but from an OO design it might be a little bloated. To me it sounds like you have the perfect use case forWeakMapdbaeumer commentedon Apr 13, 2017
I am not leaking things in the map. It is just overhead to maintain it in terms of memory and performance. I can't use the code field since I will in the error code. And there is not guarantee in eslint that all errors with the same code are all fixable
jrieken commentedon Apr 13, 2017
I am not saying you leak but the (coding) overhead will be minimal when using a weak map because there is nothing manage.
vscodebot commentedon Sep 10, 2018
This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider.
If you wonder what we are up to, please see our roadmap and issue reporting guidelines.
Thanks for your understanding and happy coding!