Skip to content

Update Flyde imports after file rename#269

Open
Entr0zy wants to merge 1 commit into
flydelabs:mainfrom
Entr0zy:fix-update-flyde-imports-on-rename
Open

Update Flyde imports after file rename#269
Entr0zy wants to merge 1 commit into
flydelabs:mainfrom
Entr0zy:fix-update-flyde-imports-on-rename

Conversation

@Entr0zy
Copy link
Copy Markdown

@Entr0zy Entr0zy commented May 20, 2026

Fixes #112.

Summary

  • update Flyde file references when VS Code renames or moves files
  • rewrite referenced paths relative to each .flyde file
  • support direct file moves, directory moves, and nested inline flow references
  • skip malformed flows instead of blocking the rename hook

Verification

node ..\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\bin\tsc -p .
node ..\node_modules\.pnpm\mocha@10.8.2\node_modules\mocha\bin\mocha out\test\updateFlowImportsAfterRename.test.js --ui tdd

Focused test result:

updateFlowImportsAfterRename
  passed updates file source paths relative to the flow file
  passed updates nested inline flow references
  passed updates references when a containing directory is moved

3 passing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Broken imports after moving files

1 participant