Skip to content

fix(vscode): update Flyde imports when files move - #285

Open
huipan18 wants to merge 1 commit into
flydelabs:mainfrom
huipan18:fix/issue-112-file-imports
Open

huipan18 wants to merge 1 commit into
flydelabs:mainfrom
huipan18:fix/issue-112-file-imports

Conversation

@huipan18

Copy link
Copy Markdown

Summary

This PR addresses issue #112, where moving an imported Flyde file causes its existing references to break.

Changes

  • Register a VS Code onWillRenameFiles handler to detect file and folder moves.
  • Recalculate relative paths for file-backed node references.
  • Handle references inside nested inline visual nodes.
  • Preserve unrelated package-backed references.

Validation

  • Successfully compiled the VS Code extension.
  • Reproduced the original issue using Main.flyde and Macro.flyde.ts.
  • Performed an initial manual test of the updated file-move behavior.

Related issue

Addresses #112.

This is an independently developed implementation. I am aware that PR #275 also addresses this issue.

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