We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fedf06b commit 5d28f9fCopy full SHA for 5d28f9f
src/CmsisConfigParser.ts
@@ -104,7 +104,7 @@ export function parse(lines: string[]): CmsisConfiguration | undefined {
104
{
105
// The Configuration Wizard section must begin within the first 100 lines of code and must start with the following comment line:
106
// '// <<< Use Configuration Wizard in Context Menu >>>'
107
- for (let idx = 0; idx < 200; idx++) {
+ for (let idx = 0; idx < Math.min(200, lines.length); idx++) {
108
const line = lines[idx].toLowerCase();
109
if (line.indexOf('<<< use configuration wizard in context menu >>>') != -1) {
110
startIdx = idx;
0 commit comments