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

Ignore symbolic links when loading directories #102

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

matthewmcgarvey
Copy link
Collaborator

@matthewmcgarvey matthewmcgarvey commented Dec 10, 2021

Fixes #74

The only difference between statSync and lstatSync is that the latter handles symbolic links while the former causes an error. Then we can ignore symbolic links.

https://nodejs.org/api/fs.html#fslstatpath-options-callback

@devo-wm
Copy link

devo-wm commented Jan 7, 2022

Confirming this changes resolved my issue as well! Would love to get this merged in :)

@patbenatar
Copy link
Owner

@matthewmcgarvey Thanks for the fix! Sorry for my delay in getting to this -- I don't have much time to support this plugin these days. I've gone ahead and given you push access to this repo if you're interested in helping maintain it.

It'd be great if we could add test coverage for this change. I started down that path but realized I haven't run the development environment for this project in a long time and looks like things have changed wrt how VS Code extensions are tested (https://code.visualstudio.com/api/working-with-extensions/testing-extension#migrating-from-vscode).

@matthewmcgarvey
Copy link
Collaborator Author

@patbenatar Appreciate it! I'll try to figure out the testing thing

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.

Extension fails if there is a broken link anywhere in the project
3 participants