Skip to content

Use AbsolutePath.asURL instead of creating a new URL from the path string #8159

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
Dec 6, 2024

Conversation

matthewbastien
Copy link
Member

Use AbsolutePath.asURL instead of creating a new URL from the path string.

Motivation:

The original PR that added resources, ignored, and other files to BuildTarget should have used AbsolutePath.asURL instead of creating a new URL from the path string. This PR fixes that in order to maintain a single location where absolute paths can be converted to URLs.

Modifications:

I've replaced the AbsolutePath to URL mappings in SourceKitLSPAPI with calls to AbsolutePath.asURL.

Result:

This PR does not have an affect on the functionality of Swift Package Manager.

@matthewbastien
Copy link
Member Author

@swift-ci please test

@plemarquand plemarquand enabled auto-merge (squash) December 5, 2024 16:14
Copy link
Member

@ahoppen ahoppen left a comment

Choose a reason for hiding this comment

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

@plemarquand plemarquand disabled auto-merge December 5, 2024 18:10
@matthewbastien
Copy link
Member Author

@swift-ci please test

@MaxDesiatov
Copy link
Contributor

@swift-ci test windows

@matthewbastien matthewbastien merged commit 4073657 into swiftlang:main Dec 6, 2024
5 checks passed
@matthewbastien matthewbastien deleted the sourcekit-lsp-fixes branch December 6, 2024 15:02
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.

4 participants