Files
sourcekit-lsp/Sources
Alex Hoppen e184c7ce5d Fix issue that caused the target preparation status to not be cleared when workspace root did not have trailing slash
If a workspace was opened as `/path/to/workspace` instead of `/path/to/workspace/` (notice the trailing slash), the check for `url.deletingLastPathComponent() == self.projectRoot` failed because deleting the last path component always produces a URL with a trailing slash and URL considers two path different if they mismatch in their trailing slash usage.

Use `DocumentURI` for equality checking, which is a little more lenient with declaring equality, including with regard to trailing slashes, and whose equality definition aligns better with what we want in SourceKit-LSP.

I searched for other usages of `==` between URLs and there doesn’t seem to be any similar issues.
2026-03-04 21:27:49 +01:00
..
2025-08-14 20:50:38 -04:00
2025-10-31 14:11:11 -07:00
2025-10-31 14:11:11 -07:00
2025-10-31 14:11:11 -07:00
2025-10-31 14:11:11 -07:00
2025-10-31 14:11:11 -07:00
2025-10-31 14:11:11 -07:00