Description
Description
I’ve observed that BTRFS on Windows 10 offers significantly higher read/write performance compared to NTFS, especially when compiling Swift Package projects. In my tests, it performs exceptionally well, even reducing unit test execution time by nearly half compared to NTFS. However, I’ve encountered an issue where VSCode’s IntelliSense for Swift stops working whenever the project is stored on a BTRFS volume. This issue does not occur when the same project is placed on an NTFS volume.
Steps to Reproduce
- Set up a Windows 10 system with both NTFS and BTRFS volumes (e.g., using a BTRFS driver like WinBtrfs).
- Install VSCode and the Swift extension (e.g., swift-server/vscode-swift).
- Create or open a Swift Package project.
- Place the project on a BTRFS volume and open it in VSCode.
- Attempt to use IntelliSense (e.g., autocompletion, type hints) while editing Swift files.
- Move the same project to an NTFS volume and repeat the process.
Expected Behavior
IntelliSense should work consistently for Swift files regardless of whether the project is stored on a BTRFS or NTFS volume.
Actual Behavior
When the project is on a BTRFS volume, IntelliSense fails to provide autocompletion, type information, or error highlighting. It works as expected when the project is on an NTFS volume.
Environment
- OS: Windows 10 22H2
- VSCode Version: The latest public release as of March 26, 2025 (1.98.2)
- Swift Extension Version: The latest public release as of March 26, 2025 (2.0.2)
- Swift Version: 6.0.3 public stable release.
- BTRFS Driver: 1.9
Additional Information
The issue seems specific to BTRFS volumes; NTFS works fine.
Compilation and unit testing performance on BTRFS is noticeably better, suggesting the filesystem itself is functional and efficient.
Restarting VSCode, reinstalling the Swift extension, or resetting the IntelliSense database does not resolve the issue.
Who to Contact?
I’m unsure whether this is an issue with the Swift extension, VSCode’s filesystem handling, or an interaction with the BTRFS driver on Windows. Could the maintainers please advise if this should also be reported to the VSCode team (e.g., microsoft/vscode) or the BTRFS driver maintainers?
Request
I’d appreciate any guidance on troubleshooting this further or confirmation if this is a known limitation. If possible, a fix or workaround would be fantastic, as BTRFS’s performance benefits are significant for Swift development on Windows.
Thank you!