提交 40cd17de 编写于 作者: D Daniel Imms

Prevent hover from showing when icon doesn't exist

Fixes #96639
上级 ea07e9bb
...@@ -1079,6 +1079,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance { ...@@ -1079,6 +1079,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
// Dispose the environment info widget if it exists // Dispose the environment info widget if it exists
this._environmentInfo?.disposable.dispose(); this._environmentInfo?.disposable.dispose();
this._environmentInfo = undefined;
if (!reset) { if (!reset) {
// HACK: Force initialText to be non-falsy for reused terminals such that the // HACK: Force initialText to be non-falsy for reused terminals such that the
...@@ -1410,6 +1411,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance { ...@@ -1410,6 +1411,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
if (!info || if (!info ||
this._configHelper.config.environmentChangesIndicator === 'off' || this._configHelper.config.environmentChangesIndicator === 'off' ||
this._configHelper.config.environmentChangesIndicator === 'warnonly' && !info.requiresAction) { this._configHelper.config.environmentChangesIndicator === 'warnonly' && !info.requiresAction) {
this._environmentInfo = undefined;
return; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册