redhat-developer / redhat-developer/vscode-yaml

Mapped Network Path glob pattern does not recognize backslashes or drive letter or network path

Open
#1,173 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
829
Forks
260
Avg merge
5h 43m
Merged PRs (30d)
1

Description

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

  1. map a network path to a drive letter, for example map //network.com/path to "J:"
  2. put a yaml file AND a yaml schema on that path
  3. in vs code's yaml.schemas workspace setting, put "J:\\full\\path\\to\\schema.json":"J:\\full\\path\\to\\file.yaml"
  4. 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)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the VS Code yaml.schemas workspace setting and the Windows paths listed in the report. Trace how those schema glob patterns are matched, then verify that drive-letter paths, backslashes, and UNC network paths provide YAML autocomplete as described.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.