vscode-yaml
vscode-yaml copied to clipboard
Mapped Network Path glob pattern does not recognize backslashes or drive letter or network path
Describe the bug
On windows cant specify any amount of mapped network path as the glob pattern using backslashes (\\). It also doesnt accept drive letter paths even with forward slashes. it also doesnt recognize the full network path, even with forward slashes.
Expected Behavior
I get auto complete on a yaml thats on the network drive
Current Behavior
it doesnt
Steps to Reproduce
- map a network path to a drive letter, for example map //network.com/path to "J:"
- put a yaml file AND a yaml schema on that path
- in vs code's yaml.schemas workspace setting, put
"J:\\full\\path\\to\\schema.json":"J:\\full\\path\\to\\file.yaml" - it doesnt work. Any combination I tried of full pathing and wildcards in step 3 doesnt work. even stuff like
"\\*"If I swap to forward slashes, then wildcard paths work but the full path still does not unless I remove the network drive letter for a wildcard.
So to recap, glob patterns things that should work but do not:
"J:\\full\\path\\to\\file.yaml",
"J:\\*\\path\\to\\file.yaml"
"*\\file.yaml"
"J:/full/path/to/file.yaml"
"//network.com/path/to/file.yaml"
"\\\\network.com\\path\\to\\file.yaml"
What I have to do instead is some variation on this using wildcards as needed:
"*/full/path/to/file.yaml"
Environment
- [X ] Windows
- [ ] Mac
- [ ] Linux
- [ ] other (please specify)