Skip to content

Commit

Permalink
Respect thisArg in EnvironmentVariableCollection.forEach
Browse files Browse the repository at this point in the history
Fixes #94077
  • Loading branch information
Tyriar committed Apr 9, 2020
1 parent 74ea30b commit 8279cc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/api/common/extHostTerminalService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ export class EnvironmentVariableCollection implements vscode.EnvironmentVariable

forEach(callback: (variable: string, mutator: vscode.EnvironmentVariableMutator, collection: vscode.EnvironmentVariableCollection) => any, thisArg?: any): void {
this._checkDisposed();
this.map.forEach((value, key) => callback(key, value, this));
this.map.forEach((value, key) => callback.call(thisArg, key, value, this));
}

delete(variable: string): void {
Expand Down

0 comments on commit 8279cc7

Please sign in to comment.