ARM-software / vscode-cmsis-csolution

Extension support for VS Code CMSIS Project Extension
https://marketplace.visualstudio.com/items?itemName=Arm.cmsis-csolution
Other
23 stars 5 forks source link

Cannot remove or delete a file included in the CMSIS tab #71

Closed DBizz22 closed 3 months ago

DBizz22 commented 3 months ago

Type: Bug Report

Describe the bug

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

-Need an option to remove and rename files from source groups using CMSIS tab options and to refresh the files in the directory.

Code sample and logs

Screenshots

image

Additional context

Because of a mistake, I deleted one "fifa.h" file but it remains in the tab.

jkrech commented 3 months ago

Currently you can only remove a file from your project by editing the corresponding *.cproject.yml file. In the CMSIS project outline view you can hover over your project/context line and on the right end of the line three icons appear. The middle one opens the *.cproject.yml file in the editor where you can simply remove the line

    - group: Source Group 1
      files:
        ...
        - file: fifa.h
        ...

Please excuse the inconvenience. This is something we plan to the product at a later point.