Skip to content

fix: update import paths when .flyde files are moved or renamed (closes #112) - #300

Open
lsdkyu wants to merge 2 commits into
flydelabs:mainfrom
lsdkyu:fix/imports-on-move
Open

lsdkyu wants to merge 2 commits into
flydelabs:mainfrom
lsdkyu:fix/imports-on-move

Conversation

@lsdkyu

@lsdkyu lsdkyu commented Oct 27, 2026

Copy link
Copy Markdown

Summary

When a .flyde file is imported by other flows and then moved to a different folder, the import path breaks. This fix adds a onDidRenameFiles listener that automatically updates all import references when .flyde files are moved or renamed.

Changes

  • NEW vscode/src/updateImportsOnFileMove.ts — listens for file rename events, finds all .flyde files that reference the moved file, updates the import paths
  • MODIFIED vscode/src/extension.ts — registers the updateImportsOnFileMove handler

How to Test

  1. Create a .flyde flow that imports another .flyde file
  2. Move the imported file to a different folder
  3. The import path in the parent flow should automatically update

/claim #112

This branch has not been deployed

No deployments
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.

1 participant