Skip to content

project migration enhancement, migration guide collateral usage#29

Merged
nimaEskandariTI merged 12 commits into
mainfrom
dev_shashank
Jul 6, 2026
Merged

project migration enhancement, migration guide collateral usage#29
nimaEskandariTI merged 12 commits into
mainfrom
dev_shashank

Conversation

@madyshashank

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread src/utilities/project.ts Outdated
saveProjects(extensionContext);
}

export function updateProjectMigrationFolderExceptions(projectInfo: ProjectInfo, folderExceptions: string[])

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not needed. the setMigrationCheckFolderException above it does this and more! it checks for no duplicates. So this is not needed.

Comment thread src/migration.ts Outdated
const projectCCodeUrisToMigrate = projectCCodeUris.filter(uri => !ignoredUriSet.has(uri.toString()));

const totalFilesafterignoring = projectCCodeUrisToMigrate.length;
const filesToProcess = projectCCodeUris.filter(uri => !ignoredUriSet.has(uri.toString()));

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the old naming is better. Logic is the same.

Comment thread src/migration.ts
}

return relevantLineNumbers.length > 0 ? relevantLineNumbers.map(lineNumber => lineNumber - 1) : [-1];
return relevantLineNumbers.map(lineNumber => lineNumber - 1);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure what this is but I am okay with it.

Comment thread src/mcp/idea-mcp.ts Outdated

Given the local path to the HTML file (downloaded in the migration workflow) and a symbol anchor (the fragment from a Migration Collateral URL, e.g. "CMPSS_configFilterHigh"), returns a structured Markdown block describing the change: old/new function signatures, argument changes, removed/added parameters, and the full diff body.

Pass anchor "--all" to render the entire report as a single Markdown document.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldnt make all an option. it is too big. We will have that for NON MCP usage.

Comment thread src/mcp/idea-mcp.ts Outdated
}

server.registerTool(
'render_migration_guide_section',

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more clear name. Rendering to MD is okay. but we should call it get_migration_guide_section so the agent is more aware this is not a rendering tool. It gets the right section for it.

Comment thread src/mcp/idea-mcp.ts
}
}
);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are still missing the TRIGGER for downlaod.


For every `${MACRO_NAME}` referenced in the applied include paths, check if that macro is defined in the target project. If missing, copy its definition from the source project, replace the source device name in the value with the target device name, and add it to **all build configurations** in the target project. Record each added macro in `c2000-migration.md`.

> **Example:** Source defines `C2000WARE_DLIB_ROOT = ${COM_TI_C2000WARE_INSTALL_DIR}/driverlib/f28003x/driverlib/`. The universal target starter does not have this macro, so the include path `--include_path="${C2000WARE_DLIB_ROOT}"` would expand to nothing. Add it to the target project as `C2000WARE_DLIB_ROOT = ${COM_TI_C2000WARE_INSTALL_DIR}/driverlib/f28p551x/driverlib/`.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of f28003x


**After applying include paths — macro resolution check (required):**

For every `${MACRO_NAME}` referenced in the applied include paths, check if that macro is defined in the target project. If missing, copy its definition from the source project, replace the source device name in the value with the target device name, and add it to **all build configurations** in the target project. Record each added macro in `c2000-migration.md`.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how would we do this?


| Migration type | `FROM_SDK` | `TO_SDK` | Base URL version |
|---|---|---|---|
| F28x → F28x | `C2000Ware_6_00_00_00` | `C2000Ware_6_00_00_00` | `C2000Ware_6_00_00_00` |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nimaEskandariTI nimaEskandariTI merged commit 467a7bd into main Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants