sasjs / vscode-extension

SAS Linting, Syntax Highlighting, and Code Execution from VS Code
https://marketplace.visualstudio.com/items?itemName=SASjs.sasjs-for-vscode
MIT License
23 stars 4 forks source link

Enable dropdown menu for target #321

Closed allanbowe closed 2 years ago

allanbowe commented 2 years ago

Currently the only menu item we have is the running man

We should add an additional drop down menu to the right of the running man, to allow the user to select from their list of available targets

Once a target is selected, it becomes the default target (and the value in the extension settings is updated)

allanbowe commented 2 years ago

Here is an example of creating multiple values in settings.json (#7) not sure how to make it dynamic though: https://code.visualstudio.com/api/references/contribution-points#Configuration-schema

Here is an approach for making a submenu: https://code.visualstudio.com/api/references/contribution-points#contributes.submenus

And there are further options here: https://code.visualstudio.com/api/references/contribution-points#contributes.menus

allanbowe commented 2 years ago

Actually, it seems that this isn't possible due to the declarative approach of VS Code extensions

https://stackoverflow.com/questions/42586589/build-dynamic-menu-in-vscode-extension