Skip to content

Commit

Permalink
Update cmakeUtil.mts
Browse files Browse the repository at this point in the history
  • Loading branch information
NickGuyver authored Oct 10, 2024
1 parent 7dac920 commit 1e9f001
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/cmakeUtil.mts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import { buildCMakeIncPath } from "./download.mjs";
export const CMAKE_DO_NOT_EDIT_HEADER_PREFIX =
// eslint-disable-next-line max-len
"== DO NOT EDIT THE FOLLOWING LINES for the Raspberry Pi Pico VS Code Extension to work ==";
export const CMAKE_DO_NOT_EDIT_HEADER_PREFIX_OLD =
"== DO NEVER EDIT THE NEXT LINES for the Raspberry Pi Pico VS Code Extension to work ==";

Check warning on line 20 in src/utils/cmakeUtil.mts

View workflow job for this annotation

GitHub Actions / build

This line has a length of 91. Maximum allowed is 80

export async function getPythonPath(): Promise<string> {
const settings = Settings.getInstance();
Expand Down Expand Up @@ -333,7 +335,7 @@ export async function cmakeUpdateSDK(
const cmakeFilePath = join(folder.fsPath, "CMakeLists.txt");
// This regex requires multiline (m) and dotall (s) flags to work
const updateSectionRegex = new RegExp(
`^# ${CMAKE_DO_NOT_EDIT_HEADER_PREFIX}.*# =+$`,
`^# (${CMAKE_DO_NOT_EDIT_HEADER_PREFIX}|${CMAKE_DO_NOT_EDIT_HEADER_PREFIX_OLD}).*# =+$`,

Check warning on line 338 in src/utils/cmakeUtil.mts

View workflow job for this annotation

GitHub Actions / build

This line has a length of 92. Maximum allowed is 80
"ms"
);
const picoBoardRegex = /^set\(PICO_BOARD\s+([^)]+)\)$/m;
Expand Down

0 comments on commit 1e9f001

Please sign in to comment.