-
Notifications
You must be signed in to change notification settings - Fork 266
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
feat: exclude deprecated schema from autocompletion #833
base: main
Are you sure you want to change the base?
feat: exclude deprecated schema from autocompletion #833
Conversation
This should be setting to exclude them. Otherwise, LSPs do have a way to mark deprecated code completions as deprecated and we should actually use that mechanism instead of excluding them directly. |
Hi @gorkem , Sorry, I am not sure if I understand correctly your thoughts. Can you explain them, please? |
f4335f9
to
ff6a896
Compare
Deprecated APIs are common in programming languages. Typically language tooling deals with it, not by removing them without notice but by marking them. Deprecated properties can be marked as deprecated by the |
Oh, I understand now. Sorry for the late reply. Note1: current implementation excludes properties with So I will probably create another fix PR that will finish the
do you agree, @gorkem ? I won't modify the
|
ff6a896
to
d9b23dd
Compare
A complete solution would be to enable the deprecated hint (the cross out) and add a setting (not a schema property) to not suggest the deprecated properties. I do not think it is the schema author's decision whether to use a deprecated property or not. Schema author already has done its responsibility by marking it deprecated. |
What does this PR do?
exclude deprecated schema from autocompletion
useful when you want to exclude some subschemas from autocompletion, but you need it to be there for validation purposes. So you can't just remove it.
What issues does this PR fix or reference?
no ref
Is it tested? How?
added tests