Fix for VSC windows#948
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|
@mashraf-222 tests are failing |
…nd added safty check
|
this feels extremely complicated for what should be a simple fix, can you fix the merge conflicts and I'll review it again. |
- Removed redundant error handling for subprocess calls in discover_tests_pytest. - Simplified the code by directly running the subprocess without try-except blocks, improving readability.
…//github.com/codeflash-ai/codeflash into ashraf/cf-918-fix-vsc-extension-windows-bugs
…//github.com/codeflash-ai/codeflash into ashraf/cf-918-fix-vsc-extension-windows-bugs
There was a problem hiding this comment.
Did some cleanup. We can raise separate PRs for the remaining issues (@mashraf-222).
Known windows issues so far:
- Applying uncommitted changes as a git patch to a worktree fails
- removing worktrees causes a permission error.
[Extension-related]
- Worktree paths are not highlighted.
- Paths in the edit init form should be relative; on Windows they are currently absolute.
- “More options” always opens on the left side, even when the sidebar is already on the left.
closes CF-918
PR Type
Bug fix, Enhancement
Description
Normalize paths for Windows compatibility
Use worktree paths in LSP initialization
Robust relative path computation with fallbacks
Case-insensitive filtering of files
Diagram Walkthrough
File Walkthrough
functions_to_optimize.py
Case-insensitive path filtering for Windowscodeflash/discovery/functions_to_optimize.py
beta.py
Use resolved worktree paths in LSP initcodeflash/lsp/beta.py
optimizer.py
Robust mirror_path with Windows-safe normalizationcodeflash/optimization/optimizer.py