File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ import { buildCMakeIncPath } from "./download.mjs";
1616export const CMAKE_DO_NOT_EDIT_HEADER_PREFIX =
1717 // eslint-disable-next-line max-len
1818 "== DO NOT EDIT THE FOLLOWING LINES for the Raspberry Pi Pico VS Code Extension to work ==" ;
19+ export const CMAKE_DO_NOT_EDIT_HEADER_PREFIX_OLD =
20+ "== DO NEVER EDIT THE NEXT LINES for the Raspberry Pi Pico VS Code Extension to work ==" ;
1921
2022export async function getPythonPath ( ) : Promise < string > {
2123 const settings = Settings . getInstance ( ) ;
@@ -333,7 +335,7 @@ export async function cmakeUpdateSDK(
333335 const cmakeFilePath = join ( folder . fsPath , "CMakeLists.txt" ) ;
334336 // This regex requires multiline (m) and dotall (s) flags to work
335337 const updateSectionRegex = new RegExp (
336- `^# ${ CMAKE_DO_NOT_EDIT_HEADER_PREFIX } .*# =+$` ,
338+ `^# ( ${ CMAKE_DO_NOT_EDIT_HEADER_PREFIX } | ${ CMAKE_DO_NOT_EDIT_HEADER_PREFIX_OLD } ) .*# =+$` ,
337339 "ms"
338340 ) ;
339341 const picoBoardRegex = / ^ s e t \( P I C O _ B O A R D \s + ( [ ^ ) ] + ) \) $ / m;
You can’t perform that action at this time.
0 commit comments