Skip to content
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

Test: ExtensionContext.environmentVariableCollection UX #96300

Closed
2 tasks done
Tyriar opened this issue Apr 27, 2020 · 1 comment
Closed
2 tasks done

Test: ExtensionContext.environmentVariableCollection UX #96300

Tyriar opened this issue Apr 27, 2020 · 1 comment

Comments

@Tyriar
Copy link
Member

Tyriar commented Apr 27, 2020

Refs: #46696, #95573

Complexity: 3


The UX side of this API is done. An extension can contribute environment changes to terminals via this API:

export interface ExtensionContext {
/**
* Gets the extension's environment variable collection for this workspace, enabling changes
* to be applied to terminal environment variables.
*/
readonly environmentVariableCollection: EnvironmentVariableCollection;
}

The API itself was tested last month, this month focus on the UX side of things with the indicator that appears in the top-right of each terminal, the hover and the relaunch terminal command.

image

Use the Update Environment and Clear Environment commands in this extension as a place to start: https://github.com/microsoft/vscode-extension-samples/tree/master/terminal-sample

@gregvanl
Copy link

Just a testing note on Windows. Noodling around relaunching terminal may hang the editor due to #76548

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants