Normalize Windows PATHs for VSCode

This commit is contained in:
Ivan Kravets
2017-05-28 02:06:58 +03:00
parent fa24d61680
commit 7637e1ad69
2 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@
{
"includePath": [
% for include in includes:
"{{include.replace('"', '\\"')}}",
"{{include.replace('"', '\\"').replace('\\\\', '/').replace('\\', '/')}}",
% end
""
],
@ -12,7 +12,7 @@
"databaseFilename": "",
"path": [
% for include in includes:
"{{include.replace('"', '\\"')}}",
"{{include.replace('"', '\\"').replace('\\\\', '/').replace('\\', '/')}}",
% end
""
]

View File

@ -7,8 +7,8 @@
"request": "launch",
"cwd": "${workspaceRoot}",
"name": "PlatformIO Debugger",
"target": "{{prog_path.replace('"', '\\"')}}",
"gdbpath": "{{join(dirname(platformio_path), "piodebuggdb").replace('"', '\\"')}}",
"target": "{{prog_path.replace('"', '\\"').replace('\\\\', '/').replace('\\', '/')}}",
"gdbpath": "{{join(dirname(platformio_path), "piodebuggdb").replace('"', '\\"').replace('\\\\', '/').replace('\\', '/')}}",
"autorun": [ "source .pioinit" ]
}
]