Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "Copy #include file" action button #182

Open
ReinhardKeil opened this issue Jan 29, 2025 · 2 comments
Open

Add "Copy #include file" action button #182

ReinhardKeil opened this issue Jan 29, 2025 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@ReinhardKeil
Copy link
Collaborator

ReinhardKeil commented Jan 29, 2025

The "Copy #include file" action button should copy #include "<filename>"/n to the clip board.

It should be on components that provide header files and header files in the CMSIS View as shown in this mockup.

For components:

  • the API header file gets priority
  • otherwise the first header file is used.

Image

@ReinhardKeil ReinhardKeil added the enhancement New feature or request label Jan 29, 2025
@ReinhardKeil ReinhardKeil changed the title Add "Copy Include File" action button Add "Copy #include file" action button Jan 30, 2025
@Elise-Kaminski Elise-Kaminski added the documentation Improvements or additions to documentation label Feb 4, 2025
@edriouk
Copy link
Collaborator

edriouk commented Feb 6, 2025

The following should appear in a command handler:

 const incText = `#include "${path.basename(uri.fsPath)}"`;
 await vscode.env.clipboard.writeText(incText)

@mguzmanm mguzmanm moved this from Backlog to In progress in CMSIS Solution Extension Feb 19, 2025
@mguzmanm
Copy link
Collaborator

mguzmanm commented Feb 27, 2025

This functionality will come later after refactoring CMSIS View #193 Refactor CMSIS View

@github-project-automation github-project-automation bot moved this from In progress to Done in CMSIS Solution Extension Feb 27, 2025
@jkrech jkrech moved this from Done to Backlog in CMSIS Solution Extension Feb 27, 2025
@jkrech jkrech reopened this Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

5 participants