vscode-yaml
                                
                                 vscode-yaml copied to clipboard
                                
                                    vscode-yaml copied to clipboard
                            
                            
                            
                        Add command to open schema file for the current buffer.
Is your enhancement related to a problem? Please describe.
Sometimes it is very hard to find an authoritative documentation for a specific configuration format.
But sometimes also there is a schema for it , with a lot of details about the format.
It's not too hard to look up the schema, but the YAML extension already does this anyway, so why not just add a command that will open the schema for the current file in a new read-only editor window ?
Describe the solution you would like
Adding a new command that will open the schema file for the current window in a new read-only editor window. This is the file that matches the schema displayed in the status bar and that the extension probably has stashed somewhere.
Ideally, when clicking on the schema name displayed in the status bar it should call this command, but I don't know if it's feasible with the VSCode UI conventions.
Describe alternatives you have considered
Doing the same work by hand, knowing the extension does it anyway and has the data somewhere.
We add a link to the schema as a code lens at the beginning of the file. Command on the status bar sounds like a good idea too.