Answer the question
In order to leave comments, you need to log in
Why does the PHP Intelephense extension for VS Code index unnecessary directories?
Hello! Help, please, to understand, who can come across.
There is a project with a large number of files located on a remote server.
To work with the project I use IDE - VS Code, with two extensions "SSH remote" and "PHP Intelephense".
The essence of the problem is that the "PHP Intelephense" extension constantly indexes the project's file structure to establish links between files. Attempts to specify a list of ignored directories lead to nothing.
I go to settings -> options -> workspace -> text editor -> remote SSH.
In the Watcher Exclude parameter, I specify the project folder to be excluded by analogy with the default ones
Like this:
/.vscode/settings.json
{
"intelephense.files.exclude": [
"**/.git/**",
"**/.svn/**",
"**/.hg/**",
"**/CVS/**",
"**/.DS_Store/**",
"**/node_modules/**",
"**/bower_components/**",
"**/vendor/**/ {Tests,tests}/**",
"**/.history/**",
"**/vendor/**/vendor/**",
"**/dock-mages/**"
],
" files.watcherExclude": {
"**/dock-images/**": true,
}
}
But "PHP Intelepense" extensionstill continues to index the directory specified in the exceptions.
How to correctly register exceptions and apply them on a remote server for vs code?
Thank you!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question