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

Add configuration option to ignore `._*` temp file on macOS in suggest list #90

prettycms opened this issue · comments

There are many ._* temp files on macOS's directory, I wish when I enter the ./ keys, these ._* temp files disappear on path list.

hi @prettycms ,

Did you try to use the excludedItems preference ?

"path-autocomplete.excludedItems": {
    "**/*.js": { "when": "**/*.ts" }, // ignore js files if i'm inside a ts file
    "**/*.map": { "when": "**" }, // always ignore *.map files
    "**/{.git,node_modules}": { "when": "**" }, // always ignore .git and node_modules folders
    "**": { "when": "**", "isDir": true }, // always ignore `folder` suggestions
    "**/*.ts": { "when": "**", "context": "import.*" }, // ignore .ts file suggestions in all files when the current line matches the regex from the `context`
}