Skip to content

Commit 40cd17d

Browse files
committed
Prevent hover from showing when icon doesn't exist
Fixes microsoft#96639
1 parent ea07e9b commit 40cd17d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/vs/workbench/contrib/terminal/browser/terminalInstance.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)