We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd5fe46 commit c5aa6c1Copy full SHA for c5aa6c1
src/vs/workbench/api/common/extHostTerminalService.ts
@@ -927,6 +927,9 @@ class EnvironmentVariableCollection {
927
}
928
929
private _setIfDiffers(variable: string, mutator: vscode.EnvironmentVariableMutator & { scope: vscode.EnvironmentVariableScope | undefined }): void {
930
+ if (mutator.options && mutator.options.applyAtProcessCreation === false && mutator.options.applyAtShellIntegration) {
931
+ throw new Error('EnvironmentVariableMutatorOptions must apply at either process creation or shell integration');
932
+ }
933
if (!mutator.scope) {
934
delete (mutator as any).scope; // Convenient for tests
935
0 commit comments