-
Notifications
You must be signed in to change notification settings - Fork 29.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow terminal environment to be set when created via extension API #20446
Comments
Sweet, thanks! |
Opening to PRs, the ideal change would plum through a new option in the terminal API |
@Tyriar we might to think about this in the light of tasks being API now. If a extension other could execute a task programmatically then all is there. A task can already specify its env. |
@dbaeumer I know that [platformio]](http://platformio.org/) needs this, going through tasks is more restrictive that the terminal so they probably wouldn't want to do that. |
Hi all, Ivan from @platformio. Thanks a lot for your work!
That is the first with which I stuck. We can't define custom environment variables in
|
@dbaeumer do you have a link to the new task contribution extension API? |
Was in vscode.proposed.d.ts in 1.12 and is now in vscode.d.ts. See https://github.com/Microsoft/vscode/blob/master/src/vs/vscode.d.ts#L3766 It still might change until we ship 1.1.3 |
I see we're deferring it. @ivankravets you might find this new API useful in an upcoming version e98c09c |
Is possible to subscribe to Simple use case. User open Serial Monitor via integrated Terminal, we see it. He triggers "Upload" task, we temporary close opened Serial Port Monitors/Terminals, then uploading firmware. If a task fails with an error, we don't re-open Monitor. However, if the upload was successful, we re-open last Serial Port Monitor. Thanks for the hints! |
@ivankravets currently not but this is definitely something we can provide. Could you open an issue please. |
@dbaeumer @ivankravets @dbaeumer hi all, @ramya-rao-a put together a PR for this #30352. We were thinking that the new |
I currently merge / override the environments. This doesn't let you remove an value. We could say if a value is undefined it means to remove. |
My proposition:
P.S: We should be able not only to override some environemnt variable but also to remove it (set to Thanks! |
@dbaeumer @ivankravets I like it 😄 @ramya-rao-a let's go additive but if the key exists and it's falsy, remove the key from the environment (note this in the API jsdoc). |
How to use it with 1.18.0?
Does not work. |
|
@ramya-rao-a Thanks, it works now! |
No description provided.
The text was updated successfully, but these errors were encountered: