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
Is your feature request related to a problem? Please describe.
Visually indicate when a deprecated function is being used.
Describe the solution you'd like
Something similar to other editors (like GoLand) where strikethrough is put over the use of a deprecated function. It might be nice to allow users to customize how this is displayed, but I think starting with a strikethrough is a good starting point.
Describe alternatives you've considered
I don't think there are any good alternatives that make the use of deprecated functions obvious to the programmer.
Additional context Doc comments support a Deprecated: section but there isn't an easy way to tell if something that has been deprecated is being used without reading the documentation or hovering over the function call.
The text was updated successfully, but these errors were encountered:
If you use staticcheck (that's this extension's default 3rd party linter run by "go.lintOnSave" feature, and you can also enable this in gopls by using "gopls": { "ui.diagnostic.staticcheck": true }), SA1019 check will report this as diagnostic.
We have some ideas to integrate this as a default diagnostic but let's discuss this in the golang/go#40447.
Is your feature request related to a problem? Please describe.
Visually indicate when a deprecated function is being used.
Describe the solution you'd like
Something similar to other editors (like GoLand) where strikethrough is put over the use of a deprecated function. It might be nice to allow users to customize how this is displayed, but I think starting with a strikethrough is a good starting point.
Describe alternatives you've considered
I don't think there are any good alternatives that make the use of deprecated functions obvious to the programmer.
Additional context
Doc comments support a
Deprecated:
section but there isn't an easy way to tell if something that has been deprecated is being used without reading the documentation or hovering over the function call.The text was updated successfully, but these errors were encountered: