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

Error highlighting & Problems listed on Excluded Files

Open PaulSwarthout opened this issue 5 years ago • 0 comments
trafficstars

Issue Type: Bug

  1. Create a PHP file inside the open folder with a syntax error in it.
  2. Save it.

PHP Intellisense will highlight the filename in red in the Explorer tab. Additionally, it will highlight each parent folder name up the folder tree to the root, indicating a problem.

  1. Open VS Code Settings. Find the setting for "Files: Exclude"
  2. Add the file you created in step 1 as an excluded file.

The file disappears from the Explorer folder list. This is the expected behavior for VS Code.

Unfortunately, PHP Intellisense still believes the excluded file is part of the project and even though the file no longer appears, PHP Intellisense continues to highlight the parent folders on up the tree in red, indicating a problem.

Further, in the debug console, "Problems" shows errors in the excluded file or files.

I would expect that PHP Intellisense would recognize when files or folders are excluded and not continue to show errors in those files, nor highlight the parent folders in the Explorer tab.

Extension version: 2.3.14 VS Code version: Code 1.49.3 (2af051012b66169dde0c4dfae3f5ef48f787ff69, 2020-10-02T17:57:01.595Z) OS version: Windows_NT x64 10.0.19041

System Info
Item Value
CPUs Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz (8 x 3392)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.89GB (8.37GB free)
Process Argv --crash-reporter-id 4a8c61d7-f6d3-495d-9576-c69834d93045
Screen Reader no
VM 0%

PaulSwarthout avatar Oct 07 '20 17:10 PaulSwarthout