vscode-php-intellisense
vscode-php-intellisense copied to clipboard
how stop scan files indexing in visual studio code
how stop scan files indexing in visual studio code
how stop scan files indexing in visual studio code. php-intellisense ignore exclude files config.
Can you show you configuration of php.files.exclude and the contents of the Output panel (PHP Language Server). Look also for a message containing files total.
I also have this issue. For my php.files.exclude I have tried many combinations. For example "/.vscode-server/" and ".vscode/**/*" and several others. I cannot find the correct way to exclude.
The .vscode-server is in the root for my user of course, and the folders I use for coding are in the ~/code/*
Output of the PHP Language Server:
DEBUG Checking PHPLS_ALLOW_XDEBUG DEBUG The Xdebug extension is loaded (3.2.2)
WARNING No restart (Unable to read ini: /var/www/vhosts/system/xxx.net/etc/php.ini)
[Info - 5:57:33 PM] OK! [Info - 5:57:36 PM] 2041 files total (unfiltered 2041) [Info - 5:57:36 PM] Indexing project for definitions and static references Parsing file:///var/www/vhosts/xxx.net/.vscode-server/data/User/History/-7169c2f4/bTxN.php Parsing file:///var/www/vhosts/xxx.net/.vscode-server/data/User/History/-2cb1fb0c/kGdt.php Parsing file:///var/www/vhosts/xxx.net/.vscode-server/data/User/History/-2cb1fb0c/fGpr.php ... over 2000 more lines ... ... over 2000 more lines ... ... over 2000 more lines ... Parsing file:///var/www/vhosts/xxx.net/.vscode-server/extensions/zobo.php-intellisense-1.3.3/vendor/felixfbecker/language-server-protocol/src/CodeActionClientCapabilitiesCodeActionLiteralSupport.php Parsing file:///var/www/vhosts/xxx.net/.vscode-server/extensions/zobo.php-intellisense-1.3.3/vendor/felixfbecker/language-server-protocol/src/DocumentSymbolClientCapabilities.php [Warn - 5:58:09 PM] Could not compute cache key for felixfbecker/language-server-protocol [Info - 5:58:09 PM] Restored felixfbecker/advanced-json-rpc:3.2.1 from cache [Info - 5:58:09 PM] Restored phpstan/phpdoc-parser:1.23.1 from cache [Info - 5:58:09 PM] All 2041 PHP files parsed in 32 seconds. 226 MiB allocated.
Try **/.vscode-server/"
Tried that. What finally works is absolute path: "/var/www/vhosts/xxx.net/.vscode-server/**/*"
And on another server: "/home/xxx/.vscode-server/**/*"
All good now. This has been bugging me for a while. Should add this to the readme for remote ssh vscode!
Indeed the docs say differently. I will recheck this.