Skip to content

Commit 4b1789d

Browse files
committed
Vscode export: remove path separator conversion
VSCode handle "/" and it is easier to read.
1 parent e682807 commit 4b1789d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/export/vscode/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,17 @@ def generate(self):
6868
{
6969
"name": "Windows",
7070
"forcedInclude": [
71-
"${workspaceRoot}\\mbed_config.h"
71+
"${workspaceRoot}/mbed_config.h"
7272
],
7373
"compilerPath": self.toolchain.cppc[0],
7474
"intelliSenseMode": "gcc-x64",
75-
"includePath": [x.replace("/", "\\") for x in all_directories],
75+
"includePath": all_directories,
7676
"defines": [symbol for symbol in self.toolchain.get_symbols()]
7777
},
7878
{
7979
"name": "Mac",
8080
"forcedInclude": [
81-
"${workspaceRoot}\\mbed_config.h"
81+
"${workspaceRoot}/mbed_config.h"
8282
],
8383
"compilerPath": self.toolchain.cppc[0],
8484
"includePath": all_directories,
@@ -87,7 +87,7 @@ def generate(self):
8787
{
8888
"name": "Linux",
8989
"forcedInclude": [
90-
"${workspaceRoot}\\mbed_config.h"
90+
"${workspaceRoot}/mbed_config.h"
9191
],
9292
"compilerPath": self.toolchain.cppc[0],
9393
"includePath": all_directories,

0 commit comments

Comments
 (0)