microsoft / vscode-copilot-release

Feedback on GitHub Copilot Chat UX in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat
Creative Commons Attribution 4.0 International
338 stars 36 forks source link

Generated slim template file inside Rails controllerers concerns #2485

Open crawler opened 3 days ago

crawler commented 3 days ago

Type: Bug

i wrote controller concern Sortable to reuse it for params[:order_by] params[:order_direction] asked copilot to review the code by saying "codereview" with intention to get some feedback because i very sleepy and can miss something. as result copilot started rewriting the code in the 3 files i was working on: concern, controller, index view. and also generated sort_order.rb concern with content from the index.html.slim template in it

Extension version: 0.22.2 VS Code version: Code 1.95.2 (Universal) (e8653663e8840adaf45af01eab5c627a5af81807, 2024-11-07T11:07:22.054Z) OS version: Darwin arm64 24.0.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M1 Pro (10 x 2400)| |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
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off| |Load (avg)|2, 2, 2| |Memory (System)|16.00GB (0.12GB free)| |Process Argv|.| |Screen Reader|no| |VM|0%|
aiday-mar commented 3 days ago

Hi in order to better understand your issue, next time you see this issue can you press the thumbs down icon and press on 'report an issue'. This will contain all the relevant information for us to better assist you.