Type: Bug/Incomplete feature
Summary
VS Code consistently shows an old version of a file (NOT based on any GIT revision). Linux tools show different version (content) of the same file.
Quick elimination question:
Does VS Code require "access times" on Linux filesystems? I have this turned off (but the "modified" file time is up to date, see touch below).

Search existing issues
When all extensions are disabled?
- YES:

Reproduce
Unfortunately, reproducing this is extremely difficult:
This is happening in Rust programming language source (my fork https://github.com/coop-rs/rust), but I'm sure it's not Rust-specific, nor project-specific. Anyway, I've run x clean, which is Rust build cleanup:

The pure source code takes 2.2 GBs (excluding .git/ and with no artifacts at all):

Hence, could you suggest steps for me to minimize/investigate this, please. Steps/tips with in-depth VS Code and Linux knowledge. As you can see below, I've done some investigation already, but no success yet unfortunately:
- I've rebooted:

- I've
touch-ed the offending file:

I've run the following two commands show that the file, as from filesystem, doesn't contain "assert_covariance" function/text:
sed -n '27,38p;39q' /share/pkehl/GIT/rust/library/alloc/src/collections/btree/map.rs
grep assert_covariance /share/pkehl/GIT/rust/library/alloc/src/collections/btree/map.rs
Shell output is in the right terminal tab/panel:

But VS Code (editor) shows extra code (see the previous screenshot, center panel, highlighted), the code being copied here:
#[allow(dead_code)]
fn assert_covariance() {
...
}
However, that was a temporary code (which I never committed to GIT), and which I'm pretty sure I've undone (possibly with git checkout or git restore instead of editing it in VS Code). But VS Code keeps showing the above obsolete file content.
VS Code version: Code 1.75.1 (441438a, 2023-02-08T21:35:30.018Z)
OS version: Linux x64 6.1.12-1-MANJARO
Modes:
Sandboxed: No
System Info
| Item |
Value |
| CPUs |
Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz (4 x 2710) |
| GPU Status |
2d_canvas: enabled canvas_oop_rasterization: disabled_off 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_renderer: enabled_on video_decode: disabled_software video_encode: disabled_software vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: disabled_off |
| Load (avg) |
2, 1, 1 |
| Memory (System) |
7.65GB (2.45GB free) |
| Process Argv |
--disable-extensions |
| Screen Reader |
no |
| VM |
0% |
| DESKTOP_SESSION |
gnome |
| XDG_CURRENT_DESKTOP |
GNOME |
| XDG_SESSION_DESKTOP |
gnome |
| XDG_SESSION_TYPE |
x11 |
Extensions disabled
Type: Bug/Incomplete feature
Summary
VS Code consistently shows an old version of a file (NOT based on any GIT revision). Linux tools show different version (content) of the same file.
Quick elimination question:

Does VS Code require "access times" on Linux filesystems? I have this turned off (but the "modified" file time is up to date, see
touchbelow).Search existing issues
When all extensions are disabled?
Reproduce
Unfortunately, reproducing this is extremely difficult:
This is happening in

Rustprogramming language source (my fork https://github.com/coop-rs/rust), but I'm sure it's not Rust-specific, nor project-specific. Anyway, I've runx clean, which is Rust build cleanup:The pure source code takes

2.2 GBs(excluding.git/and with no artifacts at all):Hence, could you suggest steps for me to minimize/investigate this, please. Steps/tips with in-depth VS Code and Linux knowledge. As you can see below, I've done some investigation already, but no success yet unfortunately:
touch-ed the offending file:I've run the following two commands show that the file, as from filesystem, doesn't contain "assert_covariance" function/text:
sed -n '27,38p;39q' /share/pkehl/GIT/rust/library/alloc/src/collections/btree/map.rs grep assert_covariance /share/pkehl/GIT/rust/library/alloc/src/collections/btree/map.rsShell output is in the right terminal tab/panel:

But VS Code (editor) shows extra code (see the previous screenshot, center panel, highlighted), the code being copied here:
However, that was a temporary code (which I never committed to GIT), and which I'm pretty sure I've undone (possibly with
git checkoutorgit restoreinstead of editing it in VS Code). But VS Code keeps showing the above obsolete file content.VS Code version: Code 1.75.1 (441438a, 2023-02-08T21:35:30.018Z)
OS version: Linux x64 6.1.12-1-MANJARO
Modes:
Sandboxed: No
System Info
canvas_oop_rasterization: disabled_off
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_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off