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
A little ago I posted a question around the use of custom tags and how they appear in suggestions (see link below). I would love if there was a way to optionally hide custom tags.
Ideally if you could individually specify which custom tags shouldn't appear in the intellisense that would be the best, but also just disabling all custom tag appearances would work for my needs.
By allowing for custom tags to be disabled in suggestions, it enables auto-generated files with custom tags to not flag as invalid, while also not impacting users who edit the file and never need to touch the custom scripts. For some of our less technical or new team members, this would help avoid confusion on available options for a property.
Originally posted by Fampov January 13, 2022
I work on a yaml document that is generated with a "!Script" tag in it which was always flagged as invalid when using the extension (which I love by the way). Finally I decided to add a custom tag for it so that it would no longer appear invalid. Alongside the custom tag, I've also written a custom JSON schema for these files and enabled them under the yaml.schemas which has been really helpful.
Unfortunately, now that I have created the custom tag it appears in all intellisense options alongside all my desired values from my json schema as shown in the image.
Is there any way I can hide it from the intellisense or at least order it last rather than at the top? !Script is always auto generated in the file so I never need it as an option from intellisense, I just didn't want it to keep appearing as invalid in the yaml. If I'm also using the custom tags inaccurately and there is a better way, any suggestions would be much appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
A little ago I posted a question around the use of custom tags and how they appear in suggestions (see link below). I would love if there was a way to optionally hide custom tags.
Ideally if you could individually specify which custom tags shouldn't appear in the intellisense that would be the best, but also just disabling all custom tag appearances would work for my needs.
By allowing for custom tags to be disabled in suggestions, it enables auto-generated files with custom tags to not flag as invalid, while also not impacting users who edit the file and never need to touch the custom scripts. For some of our less technical or new team members, this would help avoid confusion on available options for a property.
Thank you for your consideration.
Discussed in #677
Originally posted by Fampov January 13, 2022
I work on a yaml document that is generated with a "!Script" tag in it which was always flagged as invalid when using the extension (which I love by the way). Finally I decided to add a custom tag for it so that it would no longer appear invalid. Alongside the custom tag, I've also written a custom JSON schema for these files and enabled them under the yaml.schemas which has been really helpful.
Unfortunately, now that I have created the custom tag it appears in all intellisense options alongside all my desired values from my json schema as shown in the image.
Is there any way I can hide it from the intellisense or at least order it last rather than at the top? !Script is always auto generated in the file so I never need it as an option from intellisense, I just didn't want it to keep appearing as invalid in the yaml. If I'm also using the custom tags inaccurately and there is a better way, any suggestions would be much appreciated.
Thanks for your time
Beta Was this translation helpful? Give feedback.
All reactions