Skip to content

fix: update Dirent interface. #415

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

Merged
merged 2 commits into from
Apr 9, 2025
Merged

fix: update Dirent interface. #415

merged 2 commits into from
Apr 9, 2025

Conversation

Hweinstock
Copy link
Contributor

@Hweinstock Hweinstock commented Apr 8, 2025

Problem

This Dirent interface is difficult to work with for two reasons:

Solution

  • update interface to avoid deprecated field, and expose the predicate for checking links.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Hweinstock Hweinstock marked this pull request as ready for review April 8, 2025 14:29
@Hweinstock Hweinstock requested a review from a team as a code owner April 8, 2025 14:29
name: string
path: string
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good callout. I searched for references and didn't see any (besides the ones I add in aws/language-servers#923). Those will have to migrated on the version bump, but allows us to remove those workarounds.

This type is implicitly used here: https://github.com/aws/language-servers/blob/c1aaec06b70f4ef9d5e2a7ad0d1cc4d5d6955087/server/aws-lsp-codewhisperer/src/language-server/securityScan/dependencyGraph/dependencyGraph.ts#L110, but this change shouldn't affect its use case.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ack, thanks for following up!

@justinmk3 justinmk3 merged commit 02002af into aws:main Apr 9, 2025
4 checks passed
@Hweinstock Hweinstock deleted the fix/Dirent branch April 9, 2025 17:22
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.

3 participants