Apply ext env changes to new terminals

This commit is contained in:
Daniel Imms
2020-03-25 12:45:37 -07:00
parent 556550a29a
commit e775d54e2b
4 changed files with 75 additions and 18 deletions

View File

@@ -48,13 +48,15 @@ export class ExtHostTerminalService extends BaseExtHostTerminalService {
this._updateVariableResolver();
this._registerListeners();
const c = this.getEnvironmentVariableCollection({ identifier: { value: 'test' } } as any, true);
setTimeout(() => {
this._logService.info('get and set');
const c = this.getEnvironmentVariableCollection({ identifier: { value: 'test' } } as any, true);
c.prepend('a', 'b');
c.replace('c', 'd');
c.append('e', 'f');
}, 2000);
setTimeout(() => {
c.prepend('a', 'late addition');
}, 4000);
}
public createTerminal(name?: string, shellPath?: string, shellArgs?: string[] | string): vscode.Terminal {