vscode-yaml
vscode-yaml copied to clipboard
Navigating sequences of mappings by property value
Discussed in https://github.com/redhat-developer/vscode-yaml/discussions/862
Originally posted by cutecycle December 28, 2022 I was wondering: is this a thing that makes sense to want, or should I rethink my schema?
Say I have a file that is a list of objects:
- name: do the thing
priority: 0
- name: do the other thing
priority: 1
If I want to navigate to "do the thing," I'd have to Ctrl-F since the outline just shows the list with no other information:

Though the property value is listed in the outline

It is likely that we are not sending some information as part of the symbols that makes the values to be navigatable.
Note that the vscode-xml extension has this feature. It’s called xml.symbols.filters there.