Skip to content
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

Fix missing deleted files in sub-directories #364

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

SanjulaGanepola
Copy link
Collaborator

Fixes #345

@edmundreinhardt Your change in #327 was good, but only showed deleted files at the root of the project. This PR includes the logic you added but when also expanding directories. I also removed some duplicate code as the DeletedFile class can simply extend SourceFile.

Signed-off-by: Sanjula Ganepola <sanjulagane@gmail.com>
Copy link
Member

@edmundreinhardt edmundreinhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for the improvements
better command safety

@@ -31,9 +32,10 @@ export default class SourceDirectory extends TreeItem implements ProjectExplorer

for (const child of this.sourceInfo.children) {
try {
const statResult = await workspace.fs.stat(child.localUri);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THANK YOU for removing the heavy stat() call!

@edmundreinhardt edmundreinhardt merged commit 4be1da1 into IBM:main Feb 19, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Source filters don't show deleted files
2 participants