forked from platformio/platformio-core
Better path escaping
This commit is contained in:
1 parent
641c981c4b
commit
68d7630b44
3 files changed
+5
-5
No files matched your search
@@ -12,7 +12,7 @@
|
||||
% end
|
||||
"includePath": [
|
||||
% for include in includes:
|
||||
"{{include.replace('"', '\\"').replace('\\\\', '/').replace('\\', '/')}}",
|
||||
"{{include.replace('\\\\', '/').replace('\\', '/').replace('"', '\\"')}}",
|
||||
% end
|
||||
""
|
||||
],
|
||||
@@ -21,7 +21,7 @@
|
||||
"databaseFilename": "",
|
||||
"path": [
|
||||
% for include in includes:
|
||||
"{{include.replace('"', '\\"').replace('\\\\', '/').replace('\\', '/')}}",
|
||||
"{{include.replace('\\\\', '/').replace('\\', '/').replace('"', '\\"')}}",
|
||||
% end
|
||||
""
|
||||
]
|
||||
|
||||
+2
-2
@@ -7,8 +7,8 @@
|
||||
"request": "launch",
|
||||
"cwd": "${workspaceRoot}",
|
||||
"name": "PlatformIO Debugger",
|
||||
"target": "{{prog_path.replace('"', '\\"').replace('\\\\', '/').replace('\\', '/')}}",
|
||||
"gdbpath": "{{join(dirname(platformio_path), "piodebuggdb").replace('"', '\\"').replace('\\\\', '/').replace('\\', '/')}}",
|
||||
"target": "{{prog_path.replace('\\\\', '/').replace('\\', '/').replace('"', '\\"')}}",
|
||||
"gdbpath": "{{join(dirname(platformio_path), "piodebuggdb").replace('\\\\', '/').replace('\\', '/').replace('"', '\\"')}}",
|
||||
"autorun": [ "source .pioinit" ]
|
||||
}
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user