Fix minor bugs caused from merging in setupcontroller; Initialize vscode example loading

This commit is contained in:
Timothyxxx
2024-01-14 00:51:26 +08:00
parent 347160a35f
commit 2228f346a9
14 changed files with 148 additions and 138 deletions

View File

@@ -1,17 +1,18 @@
from typing import Dict
from typing import Any
from replay import get_replay
from file import get_vm_file
from typing import Dict
from .file import get_vm_file
from .replay import get_replay
def get_vscode_config(env, config: Dict[str, Any]) -> str:
trajectory = [{"type": "hotkey", "param": ["command", "shift", "p"]},
{"type": "typewrite", "param": "OpenProject"},
{"type": "press", "param": "enter"}]
{"type": "typewrite", "param": "OpenProject"},
{"type": "press", "param": "enter"}]
get_replay(env, trajectory)
return get_vm_file(env, {
"path": config["path"],
"dest": config["dest"]
})
"path": config["path"],
"dest": config["dest"]
})