Skip to content

Commit 8e9b5a2

Browse files
committed
Fix throw condition
1 parent c5aa6c1 commit 8e9b5a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/api/common/extHostTerminalService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ class EnvironmentVariableCollection {
927927
}
928928

929929
private _setIfDiffers(variable: string, mutator: vscode.EnvironmentVariableMutator & { scope: vscode.EnvironmentVariableScope | undefined }): void {
930-
if (mutator.options && mutator.options.applyAtProcessCreation === false && mutator.options.applyAtShellIntegration) {
930+
if (mutator.options && mutator.options.applyAtProcessCreation === false && !mutator.options.applyAtShellIntegration) {
931931
throw new Error('EnvironmentVariableMutatorOptions must apply at either process creation or shell integration');
932932
}
933933
if (!mutator.scope) {

0 commit comments

Comments
 (0)