Skip to content

Problem pane errors persist when file is deleted from filesystem #58088

Closed
@aaroncraig10e

Description

@aaroncraig10e

Issue Type: Bug

As suggested by @dbaeumer (#50448 (comment)), I'm opening a new issue regarding this behavior.

I noticed this when switching between branches.

branch-a has a file, index.tsx, which contains TS errors. Opening this file in the editor causes the errors to be reported in the Problems pane.

branch-b has no such file.

While still on branch-a, close index.tsx, notice that errors persist in the Problems pane.

Switch to branch-b. Notice the file is no longer present in the file browser window, however

  • issues persist in the Problem pane
  • The folders that comprise the path to the (now inexistant file) are displayed in the error state.

I can also replicate the issue with all extensions disabled.

VS Code version: Code - Insiders 1.27.0-insider (7b9afc4, 2018-09-03T09:07:33.052Z)
OS version: Darwin x64 17.7.0

System Info
Item Value
CPUs Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz (8 x 2900)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 3, 4, 3
Memory (System) 16.00GB (0.87GB free)
Process Argv /Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Electron
Screen Reader no
VM 0%
Extensions (27)
Extension Author (truncated) Version
Bookmarks ale 9.0.3
project-manager ale 8.0.0
vscode-eslint dba 1.5.0
javascript-ejs-support Dig 0.3.2
githistory don 0.4.2
gitlens eam 8.5.6
tslint eg2 1.0.38
jenkins-declarative-support jmM 0.1.0
terraform mau 1.3.4
dotenv mik 1.0.1
python ms- 2018.8.0
atom-keybindings ms- 3.0.4
azure-account ms- 0.4.3
vsliveshare ms- 0.3.623
debugger-for-chrome msj 4.9.1
vscode-jest Ort 2.9.0
vscode-docker Pet 0.1.0
material-icon-theme PKi 3.5.3
ruby reb 0.20.0
java red 0.30.0
jenkinsfile-support sec 0.1.0
slack soz 0.0.14
code-spell-checker str 1.6.10
vscode-java-debug vsc 0.12.1
vscode-java-test vsc 0.8.0
vscode-react-native vsm 0.6.16
markdown-all-in-one yzh 1.6.0

(6 theme extensions excluded)

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions