Natizyskunk / vscode-sftp

Super fast sftp/ftp extension for VS Code
Other
373 stars 68 forks source link

Cache and GIT conflict #495

Open gleb-pineparks opened 2 days ago

gleb-pineparks commented 2 days ago

Do you read the FAQ?

Describe the bug When we update project from GIT, and than open files in CScode, it's flashes the screen and loads the file from its own cache, ignoring that locally file is newer and just updated from the git, it also saves the cached version into the file imidiatly without any warnings. There is another thread on VSCode issues, but we found out that the issue is actually this extension, as problem is gone when deactivating the extension. https://github.com/microsoft/vscode/issues/207945

To Reproduce Go to 'https://github.com/microsoft/vscode/issues/207945' there is a GIF provided where problem can be seen

Expected behavior We expect that when localy file is newer than the cached one, it will not be overwritten with cached old version of the file.

Screenshots Please check here: https://github.com/microsoft/vscode/issues/207945

Desktop (please complete the following information):

VS Code version: Code 1.87.0 (Universal) (019f4d1419fbc8219a181fab7892ebccf7ee29a2, 2024-02-27T23:42:56.944Z) OS version: Darwin arm64 23.0.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M1 Pro (10 x 24)| |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| |Load (avg)|3, 3, 3| |Memory (System)|16.00GB (0.06GB free)| |Process Argv|--crash-reporter-id 83a20eb0-f963-43f3-a689-58f14285e03c| |Screen Reader|no| |VM|0%|
Extensions (9) Extension|Author (truncated)|Version ---|---|--- woocommerce|cla|1.1.0 vscode-great-icons|emm|2.1.102 vscode-wordpress-hooks|joh|1.3.0 theme-monokai-pro-vscode|mon|1.2.2 sftp|Nat|1.16.3 intellicode-api-usage-examples|Vis|0.2.8 vscodeintellicode|Vis|1.3.1 wordpress-toolbox|wor|1.3.15 JavaScriptSnippets|xab|1.8.0
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscorecescf:30445987 vscod805cf:30301675 binariesv615:30325510 vsaa593:30376534 py29gd2263:30899288 c4g48928:30535728 azure-dev_surveyone:30548225 2i9eh265:30646982 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 2e7ec940:30986170 pythontbext0:30879054 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 bf62j303:30959262 pydisww1:30991133 cppperfnew:30979542 d34g3935:30971562 fegfb526:30981948 bg6jg535:30979843 ccp2r3:30958157 dsvsc020:30976470 ```