fix: use workspace .vscode/ for editor temp files on Windows#349
Merged
breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom Jan 1, 2026
fix/windows-editor-pathbreaking-brake/cc-wf-studio:fix/windows-editor-pathCopy head branch name to clipboard
Merged
fix: use workspace .vscode/ for editor temp files on Windows#349breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom fix/windows-editor-pathbreaking-brake/cc-wf-studio:fix/windows-editor-pathCopy head branch name to clipboard
breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom
fix/windows-editor-pathbreaking-brake/cc-wf-studio:fix/windows-editor-pathCopy head branch name to clipboard
Conversation
- Store temp files in .vscode/ instead of os.tmpdir() for path consistency - Normalize file paths using vscode.Uri.file().fsPath for comparison - Add tmp- prefix to temp file names for clarity - Fixes save detection not working on Windows due to path mismatch 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Merged
braking-brake-semantic-release Bot
pushed a commit
that referenced
this pull request
Jan 1, 2026
## [3.11.1](v3.11.0...v3.11.1) (2026-01-01) ### Bug Fixes * use cross-platform path separator for agent file detection ([#348](#348)) ([49479cd](49479cd)), closes [#345](#345) * use workspace .vscode/ for editor temp files on Windows ([#349](#349)) ([00c13a4](00c13a4)) ### Improvements * remove unnecessary info message from editor ([#347](#347)) ([2f65423](2f65423))
|
🎉 This PR is included in version 3.11.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The "Edit in VSCode Editor" feature does not work correctly on Windows.
Current Behavior
Expected Behavior
Root Cause
Path comparison between
savedDoc.uri.fsPathand the storedfilePathfails on Windows due to:c:\UsersvsC:\Users)os.tmpdir()Solution
.vscode/directory instead ofos.tmpdir()for better path consistency within the workspacevscode.Uri.file(filePath).fsPathbefore comparisontmp-prefix to temp file names for clarity (e.g.,tmp-cc-wf-studio-xxx.md)Changes
File:
src/extension/commands/text-editor.tsgetTempDirectory()function that prefers.vscode/in workspace, falls back toos.tmpdir()vscode.Uri.file(filePath).fsPathfor cross-platform path normalizationcc-wf-studio-xxx.mdtotmp-cc-wf-studio-xxx.mdImpact
Testing
🤖 Generated with Claude Code