mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
Apply ext env changes to new terminals
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user