-
Notifications
You must be signed in to change notification settings - Fork 30.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Folder decorations don't go away when file with problems is deleted #61919
Comments
I am actually not able to reproduce... When deleting the file it takes a short while (1-2 sec) the folder decoration disappears... |
I can still repro, but not every time. Can you give me some pointers on where to set breakpoints? |
try this for a start: https://github.com/Microsoft/vscode/blob/17c90f611441274b3e55cec764cefc737770373e/src/vs/workbench/services/decorations/browser/decorationsService.ts#L400. It should be called from the label itself |
When it reproes, I see it call that only once after I delete test.ts. It's called as a result of the treeview refreshing. It seems to find out about the error decoration from the child. When it doesn't repro, then I also see it called a few more times with this stack
|
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! |
This is still a mystery. I have pushed a test that we emit an event for the parent folder when the decoration change for the child folder. Tho, it might be that the marker isn't actually removed. @roblourens when you see this, is the problems view empty or does it still show the error? |
It's still in the problems view too. |
Ok, that makes it a TypeScript issue... Since the marker is still there (and bubbles) it will be shown on any parent folder. It must be removed from the marker service to be cleaned up in the UI |
Duplicate of #61919 |
That's this issue 🤦♂️ |
Sorry, should be #61773 @roblourens Is there a (deleted from disk) file still open in your editor like in #58088? |
No |
git init
(This only reproes when a git repo is present)foo
is highlighted red in the explorerfoo
test.ts
foo
is still red!Doesn't repro in 1.28
The text was updated successfully, but these errors were encountered: