vscode-commandbar icon indicating copy to clipboard operation
vscode-commandbar copied to clipboard

save/read settings to/from .code-workspace or read settings from all .vscode/commandbar.json files in workspace

Open mikehutter opened this issue 7 years ago • 3 comments

I have a workspace with several projects/folders loaded, for example let's say I have 3 projects/folders loaded in my workspace:

PF1 -.vscode --commandbar.json

PF2 -.vscode --commandbar.json

PF3 -.vscode --commandbar.json

It appears that this extension is only reading the settings file from the first one:

PF1/.vscode/commandbar.json

I don't believe it is possible (or desirable) to add an entry for npm commands defined in PF2's or PF3's project.json file to PF1's commandbar.json settings file. Even if I did, I assume they all would run in PF1's "context" right? The same commands might not exist in PF1 that exist in either PF2 or PF3 and cause en error or if it did happen to exist it would just run the command against PF1 correct?

If it is possible to achieve something like this, please let me know but if not, it would be nice to either:

Read from a single commandbar.json file saved in the same location as the .code-workspace file that opened the workspace. It could use the meta (path, name) from the .code-workspace file to determine where command should be executed for the various projects/folders.

  • or -

Read from the commandbar.json file(s) that are present in the workspace. (i.e. - PF1, PF2, PF3)

Thanks!

mikehutter avatar Jan 25 '18 18:01 mikehutter