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
324 stars 29 forks source link

Apply fix adds ''' symbols as well #1594

Open zamirov opened 3 weeks ago

zamirov commented 3 weeks ago

Type: Bug

Trying to fix json I used "Apply" but it added ``` symbols in the beginning.

Extension version: 0.20.1 VS Code version: Code 1.93.0 (4849ca9bdf9666755eb463db297b69e5385090e3, 2024-09-04T13:02:38.431Z) OS version: Windows_NT x64 10.0.22635 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz (8 x 1498)| |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.72GB (1.53GB free)| |Process Argv|--crash-reporter-id 30f65a2b-8250-4e2c-a273-174a7d0f7668| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805cf:30301675 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 2i9eh265:30646982 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonnoceb:30805159 asynctok:30898717 pythonmypyd1:30879173 2e7ec940:31000449 pythontbext0:30879054 accentitlementst:30995554 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 bdiig495:31013172 a69g1124:31058053 dvdeprecation:31068756 dwnewjupyter:31046869 impr_priority:31102340 refactort:31108082 pythonrstrctxt:31112756 flightc:31134773 wkspc-onlycs-t:31132770 wkspc-ranged-c:31125598 cf971741:31134768 pme_test_t:31118333 ei213698:31121563 ```
aeschli commented 3 weeks ago

Can you provide a small example with a code block and the file in the editor?

Codie-Petersen commented 3 weeks ago

Can you provide a small example with a code block and the file in the editor?

It's literally just a ``` at the end of the scripts or when you tell it to generate a whole script from a single page. Likely you guys are using the same model for the auto completions and the chat. It is just adding markdown ticks at the end. Sometimes it does it, sometimes it doesn't.

If you start a simple script and keep tab completing you will probably see it finally show up at the end.