microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.37k stars 28.93k forks source link

When connecting to the server remotely, if you make changes to a file, and then click Save File, all the code for that open file will be cleared. #206499

Closed SrlyNb666 closed 7 months ago

SrlyNb666 commented 7 months ago

Type: Bug

When connecting to the server remotely, if you make changes to a file, and then click Save File, all the code for that open file will be cleared.

VS Code version: Code 1.87.0 (019f4d1419fbc8219a181fab7892ebccf7ee29a2, 2024-02-27T23:41:44.469Z) OS version: Windows_NT x64 10.0.26058 Modes: Remote OS version: Linux x64 6.2.0-39-generic

System Info |Item|Value| |---|---| |CPUs|12th Gen Intel(R) Core(TM) i7-12700H (20 x 2688)| |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| |Load (avg)|undefined| |Memory (System)|31.80GB (16.07GB free)| |Process Argv|--enable-proposed-api HuaweiCloud.vscode-codebot --crash-reporter-id 0969ce9d-49aa-4d59-b882-cc48a10b7322| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|SSH: Chen| |OS|Linux x64 6.2.0-39-generic| |CPUs|13th Gen Intel(R) Core(TM) i9-13900K (32 x 3000)| |Memory (System)|62.60GB (56.69GB free)| |VM|0%|
Extensions (30) Extension|Author (truncated)|Version ---|---|--- browse-lite|ant|0.3.7 better-cpp-syntax|jef|1.17.2 jupyter-keymap|ms-|1.1.2 remote-ssh|ms-|0.109.2024022215 remote-ssh-edit|ms-|0.86.0 remote-wsl|ms-|0.86.0 remote-explorer|ms-|0.4.3 remote-server|ms-|1.5.1 vscode-serial-monitor|ms-|0.11.0 pdf|tom|1.2.2 JavaScriptSnippets|xab|1.8.0 copilot|Git|1.168.0 copilot-chat|Git|0.13.0 huawei-cloud-toolkit-platform|Hua|1.0.26 vscode-codebot|Hua|3.0.0 vscode-language-pack-zh-hans|MS-|1.87.2024022809 debugpy|ms-|2024.2.0 python|ms-|2024.2.0 vscode-pylance|ms-|2024.2.2 jupyter|ms-|2024.2.0 jupyter-keymap|ms-|1.1.2 jupyter-renderers|ms-|1.0.17 tensorboard|ms-|2023.10.1002992421 vscode-jupyter-cell-tags|ms-|0.1.8 vscode-jupyter-slideshow|ms-|0.1.5 cpptools|ms-|1.19.4 powershell|ms-|2024.0.0 vscode-serial-monitor|ms-|0.11.0 sftp|Nat|1.16.3 vscode-arduino|vsc|0.6.0 (1 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscoreces:30445986 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:30899288 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 pythontbext0:30879054 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 d34g3935:30971562 edj9j583:30969295 a89i1917:30973842 bg6jg535:30958357 dsvsc020:30973508 ```
vscodenpa commented 7 months ago

感谢您创建此问题!

然而,由于您没有使用英语,我们很难进行处理。如果可能,请您将此问题描述修改为英文。请您直接编辑此问题,不要提交回复或新问题。

请注意,机器翻译服务通常无法处理用于讨论软件问题所需的技术性语言,所以我们推荐您寻找一位熟悉相关技术的人来协助翻译。

如果您无法做到,没有关系。此问题已经被标记为需要翻译,等待社区成员志愿进行翻译。


Thanks for creating this issue!

Unfortunately, as the description is not in English, it's hard for us to work on. If possible, please edit the original issue to be in English.

In our experience, automatic translation services are not able to handle the technical language needed to effectively communicate about software issues, so we recommend finding a human translator who is familiar with our technology to help.

Otherwise, we have marked this as needing translation and a community member may be able to help out.

bpasero commented 7 months ago

I wonder if this issue is being caused by an installed extension. Can you try to run VS Code without extensions? From the command line (NOT the integrated terminal in Code), execute: code --disable-extensions and try your steps again to see if it reproduces. If you see it is an issue with the extension, please file it against the extension repository itself.

vscodenpa commented 7 months ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!