Handling long files
Type: Bug
Everytime I ask Copilot Chat a question when I have a related file open, it repeats the entire file contents instead of just giving me relevant information. Some files are over 300 lines long, so it takes forever for it to print all of that and I can't see what's the difference anyway. I would recommend that it didn't do that by default when the files are over 20 lines or so.
Extension version: 0.24.1 VS Code version: Code 1.97.2 (e54c774e0add60467559eb0d1e229c6452cf8447, 2025-02-12T23:20:35.343Z) OS version: Windows_NT x64 10.0.26100 Modes:
System Info
| Item | Value |
|---|---|
| CPUs | 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz (8 x 2803) |
| GPU Status | 2d_canvas: enabled canvas_oop_rasterization: enabled_on direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_graphite: disabled_off video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: enabled webnn: disabled_off |
| Load (avg) | undefined |
| Memory (System) | 15.73GB (3.18GB free) |
| Process Argv | --crash-reporter-id de119a28-276b-4028-b2d2-7beb32d591fe |
| Screen Reader | no |
| VM | 0% |
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
py29gd2263:31024239
vscaac:30438847
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dwnewjupytercf:31046870
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc2:31192216
iacca1:31171482
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624
dwoutputs:31242946
hdaa2157:31222309
copilot_t_ci:31222730
jda6j935:31233686
copilothoveron:31245428
I have the same problem except since my file is 1000 lines, copilot just takes forever trying to come up with all the edits and then errors out because the response is too large