File tree Expand file tree Collapse file tree
src/vs/workbench/contrib/terminal/browser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1079,6 +1079,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
10791079
10801080 // Dispose the environment info widget if it exists
10811081 this . _environmentInfo ?. disposable . dispose ( ) ;
1082+ this . _environmentInfo = undefined ;
10821083
10831084 if ( ! reset ) {
10841085 // HACK: Force initialText to be non-falsy for reused terminals such that the
@@ -1410,6 +1411,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
14101411 if ( ! info ||
14111412 this . _configHelper . config . environmentChangesIndicator === 'off' ||
14121413 this . _configHelper . config . environmentChangesIndicator === 'warnonly' && ! info . requiresAction ) {
1414+ this . _environmentInfo = undefined ;
14131415 return ;
14141416 }
14151417
You can’t perform that action at this time.
0 commit comments