Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovidiu Rusu committed Jan 3, 2025
1 parent cc94011 commit 2434b58
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sema4ai/src/sema4ai_code/robocorp_language_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -2284,7 +2284,10 @@ def _fix_wrong_agent_import(self, agent_dir, monitor: IMonitor) -> ActionResultD

# Move files and directories from the versioned folder to the root action directory
for item in temp_extract_path.rglob("*"):
if item.is_file() and item.name != "metadata.json":
if (
item.is_file()
and item.name != "__action_server_metadata__.json"
):
relative_path = item.relative_to(temp_extract_path)
final_path = zip_path.parent / relative_path

Expand Down
3 changes: 3 additions & 0 deletions sema4ai/tests/sema4ai_code_tests/test_vscode_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -3093,3 +3093,6 @@ def test_fix_wrong_agent_import(
assert not action_zip.exists()
assert (action_zip.parent / "package.yaml").exists()
assert not (temp_dir / "__agent_package_metadata__.json").exists()
assert not (
temp_dir / "actions/MyActions/action-one/__action_server_metadata__.json"
).exists()

0 comments on commit 2434b58

Please sign in to comment.