Skip to content

Commit 034dc41

Browse files
authored
Merge pull request #30 from cmfcmf/recommended-extensions
Recommend vscode extensions from the getting started guide
2 parents b344379 + 03ec285 commit 034dc41

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pico_project.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
VSCODE_LAUNCH_FILENAME = 'launch.json'
3030
VSCODE_C_PROPERTIES_FILENAME = 'c_cpp_properties.json'
3131
VSCODE_SETTINGS_FILENAME ='settings.json'
32+
VSCODE_EXTENSIONS_FILENAME ='extensions.json'
3233
VSCODE_FOLDER='.vscode'
3334

3435
CONFIG_UNSET="Not set"
@@ -1061,6 +1062,14 @@ def generateProjectFiles(projectPath, projectName, sdkPath, projects, debugger):
10611062
' },\n'
10621063
'}\n')
10631064

1065+
e1 = ( '{\n'
1066+
' "recommendations": [\n'
1067+
' "marus25.cortex-debug",\n'
1068+
' "ms-vscode.cmake-tools",\n'
1069+
' "ms-vscode.cpptools"\n'
1070+
' ]\n'
1071+
'}\n')
1072+
10641073
# Create a build folder, and run our cmake project build from it
10651074
if not os.path.exists(VSCODE_FOLDER):
10661075
os.mkdir(VSCODE_FOLDER)
@@ -1080,6 +1089,10 @@ def generateProjectFiles(projectPath, projectName, sdkPath, projects, debugger):
10801089
file.write(s1)
10811090
file.close()
10821091

1092+
file = open(VSCODE_EXTENSIONS_FILENAME, 'w')
1093+
file.write(e1)
1094+
file.close()
1095+
10831096
else :
10841097
print('Unknown project type requested')
10851098

0 commit comments

Comments
 (0)