windmill-labs/windmill-vscode

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

Opened this issue · 7 comments

  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

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.

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

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.

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