Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scripts file content within flow replaced by !inline script_name.inline_script.bun.ts #12

Open
whollacsek opened this issue May 15, 2024 · 7 comments

Comments

@whollacsek
Copy link

  1. Open a flow.yaml file
  2. Show preview
  3. Click on a script node in the preview
  • All .lock files get deleted
  • All script file content get replaced by !inline script_name.inline_script.bun.ts
@rubenfiszel
Copy link
Contributor

It's intended, the CLI and vscode work with the assumption that locally it is better to use separate files for lock and content file. The new files should have been created as well no?

I agree it is a bit aggressive, we could make that an option if desired but in general I prefer having a unique behavior so that there aren't too many alternatives mode to maintain.

@whollacsek
Copy link
Author

whollacsek commented May 15, 2024 via email

@rubenfiszel
Copy link
Contributor

Are the files (here: script_name.inline_script.bun.ts) created as well, with the content inlined ? If not, that's probably something we ought to improve

@rubenfiszel
Copy link
Contributor

but just for the record, the intended usage is that you use the cli to pull from your workspace. The CLI will pull the flow folder with the correct layout and splitted files.

@whollacsek
Copy link
Author

whollacsek commented May 15, 2024 via email

@rubenfiszel
Copy link
Contributor

I understand now. Can you check if you are on the latest version of the vscode extension ? Otherwise could you share a minimal flow that expose this behavior. I do not face it locally

@whollacsek
Copy link
Author

whollacsek commented May 17, 2024 via email

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

No branches or pull requests

2 participants