-
-
Notifications
You must be signed in to change notification settings - Fork 655
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
[display] @:deprecated typedefs in completion #8178
Comments
Filter this in vsHaxe or vsCode, not the compiler. IDEs should be able to make their own decisions. |
I guess that might be preferable. But in either case something needs to change in the compiler, because the protocol currently doesn't seem to include metadata for types (even though the data structure has a It looks like metas are only sent during |
I agree the metadata should be included in the protocol response. A flag set for common metadata would be Ok, if we want something lightweight. (Still need all of the metadata to be present, though.) |
We could use a file dictionary to remove the duplicate — very long — names. |
I don't think we need the positions of the metadata at all. There's already a position on the type. |
That may be true for this use case. The question becomes whether the code that puts out the metadata is common and the position is required for (an)other use case(s). For instance, Is this code part of the compiler trying to expose full fidelity parsed data? Or, is it, perhaps, trying to give ordering of the metadata so that an IDE can re-order based upon the user's/IDE's rules? |
Never thought I'd see the day where @Gama11 wants less positions in the display output... |
What about an opt-in argument for display requests to add meta positions. By default, metadata won't contain pos infos. |
As I said, I don't think there's any point to including these positions at all, so a flag seems like overengineering. A list of metas to include in responses might make sense though, to reduce bandwidth if we only look at e.g. |
I agree @:deprecated should imply @:noCompletion, on both types and fields. No flag required. |
That means the decision about hiding it from completion would be made by the compiler. While the original issue (and I agree with it) suggested to let IDE decide whether a type should be listed in completion. |
Well, originally I suggested hiding it compiler-side, but then @EricBishton complained. :) It would be pretty consistent with what's done with |
I have no strong opinion on that. It just feels right to make this decision on IDE side. |
It's rather annoying to have the now deprecated types (#7390) show up in completion, and before the ones you're meant to use:
I think there's no reason to show
@:deprecated
typedefs in completion at all? At least as long as they're just simple aliases, typedefs to anon structs should probably still be shown. I think there's already some detection for the difference for nicer auto-generated deprecation messages.The text was updated successfully, but these errors were encountered: