update vsc

This commit is contained in:
Siheng Zhao
2024-01-13 23:20:36 +08:00
parent 0242657b86
commit 347160a35f
4 changed files with 49 additions and 10 deletions

View File

@@ -5,7 +5,11 @@ from file import get_vm_file
def get_vscode_config(env, config: Dict[str, Any]) -> str:
get_replay(env, config["trajectory"])
trajectory = [{"type": "hotkey", "param": ["command", "shift", "p"]},
{"type": "typewrite", "param": "OpenProject"},
{"type": "press", "param": "enter"}]
get_replay(env, trajectory)
return get_vm_file(env, {
"path": config["path"],

View File

@@ -23,11 +23,6 @@
},
"result": {
"type": "vscode_config",
"trajectory": [
{"type": "hotkey", "param": ["command", "shift", "p"]},
{"type": "typewrite", "param": "OpenProject"},
{"type": "press", "param": "enter"}
],
"path": "OpenProject.txt",
"dest": "OpenProject.txt"
}

View File

@@ -1,12 +1,41 @@
{
"id": "59ed65c7-e9a6-43db-833f-76d6730c0004",
"snapshot": "vscode",
"instruction": "Could you help me start debugging with the breakpoint at line 15?",
"instruction": "Could you help me start debugging with the breakpoint at line 100?",
"source": "https://www.youtube.com/watch?v=7qZBwhSlfOo",
"config": [],
"config": [
{
"type": "download",
"parameters": {
"files": [
{
"url": "https://drive.usercontent.google.com/download?id=1eLlB7UqRjh55vm0SIxb96aU1WbbK3H3T&export=download&authuser=0&confirm=t&uuid=379d1cbf-cca1-454a-a5a6-c5389024f728&at=APZUnTWn4vJZhfvrdfYZ6byVfaSj:1705159150342",
"path": "Desktop/main.py"
}
]
}
},
{
"type": "open",
"parameters": {
"path": "Desktop/main.py"
}
}
],
"trajectory": "trajectories/",
"related_apps": [
"vscode"
],
"evaluator": "evaluation_dir"
"evaluator": {
"func": "compare_config",
"expected": {
"type": "string",
"string": "100"
},
"result": {
"type": "vscode_config",
"path": "GetBreakPoint.txt",
"dest": "GetBreakPoint.txt"
}
}
}

View File

@@ -8,5 +8,16 @@
"related_apps": [
"vscode"
],
"evaluator": "evaluation_dir"
"evaluator": {
"func": "compare_config",
"expected": {
"type": "string",
"string": "2"
},
"result": {
"type": "vscode_config",
"path": "GetColorTheme.txt",
"dest": "GetColorTheme.txt"
}
}
}