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

Sort "Active solution" by alphabetical order #32

Closed VVESTM closed 1 year ago

VVESTM commented 1 year ago

Hello,

When using "Keil Studio Pack" and "Arm CMSIS csolution" extensions, it can be quite difficult to find the relevant "Active solution" in CMSIS context menu. Effectively, if we have several csolution.yml and cproject.yml files, the list is not sorted. And from one launch to the other, the order may vary.

Is it possible to have an alphabetical sort ? image

Thanks in advance for your help.

micque01 commented 1 year ago

Hi @VVESTM, thanks for reporting this issue. We'll work on a fix and include it in an upcoming release. Thanks!

micque01 commented 1 year ago

@VVESTM could you provide more information about the directory/file structure you are using for your solutions? This would help us to reproduce the issue. Also which OS are you using?

Thank you!

VVESTM commented 1 year ago

I am working on Windows.

With VSCode, I open a directory which contains several sub directories. In each subdirectories, I have a cproject.yml/csolution.yml: image (one cproject.yml per project and per board)

In VSCode, the view is like this: image

In "Active Solution", the different lines are not sorted. (This is not visible on my screen capture as I only took a subset of my projects)

micque01 commented 1 year ago

Hi @VVESTM, thanks for the additional info. Version 0.25.0 of the csolution extension has just been released, which includes sorting of solutions and projects in the context drop-downs. Hopefully this fixes your issue!

VVESTM commented 1 year ago

Thanks a lot !! I confirm it is working now on my side.