Vscode-intelephense: files.exclude does not seem to work - indexer does not skip files

Created on 6 Mar 2018  ยท  8Comments  ยท  Source: bmewburn/vscode-intelephense

I am using extension Local history and having problems excluding files from indexing.

Because Local history makes backups of edited files in .vscode/.history/ when I use Go to definition it opens file from .history dir instead my workspace dir - even when I am in the same file and want to jump to a method in the same file.

User setting for files.exclude

"files.exclude": {
    "**/.history/**": true,
    ".vscode/.history": true,
    ".vscode/.history/**": true
},

User setting for local-history

"local-history.path": "${workspaceFolder}/.vscode",

Example:

.vscode
โ”œโ”€ .history
โ”‚ย     โ””โ”€ User
โ”‚ย         โ”œโ”€ User_20180131172713.php
โ”‚ย         โ”œโ”€ User_20180306151059.php
โ”‚         โ””โ”€ User_20180306151101.php
โ””โ”€ User
    โ””โ”€ User.php

Edit: This happens to me only on Windows 10. On Linux not (for now).

Most helpful comment

version 1.0 adds another config setting specific to intelephense -- intelephense.files.exclude which accepts an array of globs to exclude.

All 8 comments

This should be working, however it may not be updating on config changes. You may need to use the clear cache and reload setting.

I have the same problem...

Reload works only for a short time - after some time intelephense picks up files from .history folder.

Same here.

This happens to me only on Windows 10. On Linux not (for now).

Happens for me on both Win 10 and Linux.

Happens for me as well, on Linux and Windows. We have a build folder on a side, which is ingored by VSCode but not by Intelephense, and files are indexed and navigated to

"files.exclude": {
       "app/vendor": true,
       "build": true,
       "packages": true
    },

version 1.0 adds another config setting specific to intelephense -- intelephense.files.exclude which accepts an array of globs to exclude.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zlianon picture zlianon  ยท  4Comments

swashata picture swashata  ยท  3Comments

zlianon picture zlianon  ยท  3Comments

zlianon picture zlianon  ยท  3Comments

usrnm-nk picture usrnm-nk  ยท  3Comments