mihai-vlc / path-autocomplete

Path autocomplete for visual studio code.

Home Page:https://marketplace.visualstudio.com/items?itemName=ionutvmi.path-autocomplete

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Question] how to config it to support pnpm link and file protocol

tjx666 opened this issue · comments

You can try something like this:

  "path-autocomplete.transformations": [
    {
      "type": "inputReplace",
      "parameters": ["^link:", "", "g"],
      "when": {
        "path": "link:.*"
      }
    }
  ]

Works fine, thanks @mihai-vlc

    "path-autocomplete.transformations": [
        {
            "type": "inputReplace",
            "parameters": ["^(link|file):", "", "g"],
            "when": {
                "path": "^(link|file):.*"
            }
        }
    ],