Repository navigation
Preserve local flow imports when files or folders move in VS Code - #277
Open
BreakYukino wants to merge 1 commit into
Open
BreakYukino wants to merge 1 commit into
BreakYukino wants to merge 1 commit into
Conversation
This branch has not been deployed
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.
Moving an imported local node or its parent directory leaves
.flydereferences pointing at the old path. This registers a VS CodeonWillRenameFilesparticipant that supplies aWorkspaceEdit, including rebasing references when the importing flow itself moves.Only the YAML scalar for each affected file reference is replaced. Comments, unrelated config, package/custom sources, and unsaved buffer edits are preserved. It handles modern sources, nested inline nodes, legacy imports, folder and batched moves, and Windows drive-letter casing returned by
findFiles.Validation:
vscode/test-evidence/. This validates the VS Code integration, not full Flyde flow execution.pnpm buildwas attempted and stops in unchangednodes/src/ControlFlow/ControlFlow.spec.ts:TS2305: Module 'chai' has no exported member 'assert'during the existing webpack build.pnpm testwas attempted; the loader suite stops withERR_UNSUPPORTED_TYPESCRIPT_SYNTAXon the local Node runtime.Files moved outside VS Code are outside this handler's scope. Malformed YAML is skipped and logged rather than rewritten.
AI assistance: authored and tested with Codex on behalf of the account owner. The Windows drive-case regression was found in the real editor check and then added to the tests.
Closes #112.
/claim #112