sasjs / vscode-extension

SAS Linting, Syntax Highlighting, and Code Execution from VS Code

Home Page:https://marketplace.visualstudio.com/items?itemName=SASjs.sasjs-for-vscode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enable dropdown menu for target

allanbowe opened this issue · comments

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)

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

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