php-language-server icon indicating copy to clipboard operation
php-language-server copied to clipboard

Reindexing entire library each time I start VS Code

Open AndyGHenderson opened this issue 6 years ago • 2 comments
trafficstars

Issue Type: Performance Issue

I believe this was triggered by me upgrading my installed version of PHP from 7.1 to 7.3.

Now every time I open Code it indexes every .php file I have showing the message 'Parsing file...' for each one in the output window.

I use VS Code to manage several sites and each one uses a variety of WordPress plugins. That means a lot of files. I'm unsure what the indexing is doing, but I suspect it's treating my entire folder tree (containing several sites) as a single project - which is bound to yield incorrect results. All that activity is unnecessary - I don't need it and have been doing fine without it up to now.

So - I'm looking either for a way to turn it off or have VS Code remember the results of the last index so it doesn't have to repeat it on every reload.

Andy

Extension version: 2.3.13 VS Code version: Code 1.39.2 (6ab598523be7a800d7f3eb4d92d7ab9a66069390, 2019-10-15T15:35:18.241Z) OS version: Windows_NT x64 10.0.18362

System Info
Item Value
CPUs Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz (4 x 2394)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: unavailable_off
viz_display_compositor: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.88GB (8.43GB free)
Process Argv
Screen Reader no
VM 0%
Process Info
CPU %	Mem MB	   PID	Process
    2	    79	  7152	code main
    1	   395	  6388	   gpu-process
    2	    66	  6580	   window (Issue Reporter)
    0	    13	 10432	   electron-crash-reporter
   57	    74	 12392	   shared-process
   21	   395	 14684	   window (u3a-membership-functions.php - VS Code (Workspace) - Visual Studio Code)
    0	    82	  2552	     extensionHost
    0	    38	  2348	       "C:\Users\Andy\AppData\Local\Programs\Microsoft VS Code\Code.exe" "c:\Users\Andy\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\jsonServerMain" --node-ipc --clientProcessId=2552
   13	   231	 13124	       "c:\program files\php7\php.exe" c:\Users\Andy\.vscode\extensions\felixfbecker.php-intellisense-2.3.13\vendor\felixfbecker\language-server\bin\php-language-server.php --tcp=127.0.0.1:54486 --memory-limit=4095M
    0	     6	 13716	         console-window-host (Windows internal process)
    0	    38	  9568	     searchService
    0	    44	 15136	     watcherService
Workspace Info
|  Window (u3a-membership-functions.php - VS Code (Workspace) - Visual Studio Code)
|    Folder (Web): 1791 files
|      File types: js(794) png(192) gif(172) aspx(71) csv(49) css(39) pdf(35)
|                  doc(29) txt(21) dll(20)
|      Conf files:
|    Folder (Dropbox): more than 21110 files
|      File types: php(4186) png(2937) jpg(2710) js(1578) gif(1252) mo(1102)
|                  po(841) css(494) txt(298) ini(210)
|      Conf files: package.json(6) settings.json(1) grunt.js(1)
|    Folder (PiDev): more than 20936 files
|      File types: jpg(6518) png(3131) php(2994) mo(1030) po(881) gif(822)
|                  js(672) pdf(399) css(307) jpeg(278)
|      Conf files: package.json(2) grunt.js(1);

AndyGHenderson avatar Oct 17 '19 20:10 AndyGHenderson

Same issue, but running VS Code on Linux (CentOS 7), PHP 7.3, extension v 2.3.13. Managing Moodle code (many files)

woolardfa avatar Oct 30 '19 21:10 woolardfa

Same here, reindexing vendor folder every time opening a project. Windows10 / VS Code 1.55.1/ PHP 7.4.7. Would be nice if cached until next composer update / install.

wishbone-productions avatar Apr 10 '21 13:04 wishbone-productions