fabiospampinato / vscode-terminals

An extension for setting-up multiple terminals at once, or just running some commands.
MIT License
121 stars 19 forks source link

are global settings possible ? #4

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hi, is it possible to set global settings for "vscode-terminals" if I want to have the same commands in every projects ? thanks. Fred

ghost commented 6 years ago

sorry, asked too fast. just saw on terminals documentation that I can set a custom path for the setting file. could probably do some kind of global setting like that.

fabiospampinato commented 6 years ago

Exactly, that way every terminal would be global.

I'm not 100% sure, but I think you can also define terminals in your global VSC settings file. This way you would have some global terminals as well as local terminals if you need them.

ghost commented 6 years ago

thanks.. gonna make some tests.

[edit:] doesn't seem to work if I copy my terminals settings in global VSC settings file. I got "Unknown configuration setting" on "terminals": [

fabiospampinato commented 6 years ago

I forgot to mention that those terminals defined in the settings should be defined under the terminals.terminals key.

ghost commented 6 years ago

I tried that, but as I saw the "Unknown configuration setting" message, I didn't really launch a command. tried again and when I launch a command it seems to work ok, even with the "unknown.." message. good. will verify later with some other terminals command on another project. thanks a lot for your work.

fabiospampinato commented 6 years ago

You get that error because the extension doesn't properly tell VSC that it supports that option, I'll fix this as well.

ghost commented 6 years ago

sorry to give you all that work today.. :-)

fabiospampinato commented 6 years ago

No problem, I like to improve my extensions :)

fabiospampinato commented 6 years ago

This should be fixed in v1.5.3.

There was the ability to add global terminals, but if you did, you couldn't have local terminals. It should work properly now.

ghost commented 6 years ago

global and local settings working good, thanks !! 👍 :-)