Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/vs/workbench/contrib/terminal/browser/terminalInstance.ts')
-rw-r--r--src/vs/workbench/contrib/terminal/browser/terminalInstance.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vs/workbench/contrib/terminal/browser/terminalInstance.ts b/src/vs/workbench/contrib/terminal/browser/terminalInstance.ts
index 43eae42dee2..eae0e132b05 100644
--- a/src/vs/workbench/contrib/terminal/browser/terminalInstance.ts
+++ b/src/vs/workbench/contrib/terminal/browser/terminalInstance.ts
@@ -319,7 +319,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
readonly onLinksReady = this._onLinksReady.event;
private readonly _onTitleChanged = this._register(new Emitter<ITerminalInstance>());
readonly onTitleChanged = this._onTitleChanged.event;
- private readonly _onIconChanged = this._register(new Emitter<ITerminalInstance>());
+ private readonly _onIconChanged = this._register(new Emitter<{ instance: ITerminalInstance; userInitiated: boolean }>());
readonly onIconChanged = this._onIconChanged.event;
private readonly _onData = this._register(new Emitter<string>());
readonly onData = this._onData.event;
@@ -1464,7 +1464,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
}
if (originalIcon !== this.shellLaunchConfig.icon || this.shellLaunchConfig.color) {
this._icon = this._shellLaunchConfig.attachPersistentProcess?.icon || this._shellLaunchConfig.icon;
- this._onIconChanged.fire(this);
+ this._onIconChanged.fire({ instance: this, userInitiated: false });
}
}
@@ -2211,7 +2211,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
});
if (result) {
this._icon = result.icon;
- this._onIconChanged.fire(this);
+ this._onIconChanged.fire({ instance: this, userInitiated: true });
}
}
@@ -2248,7 +2248,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
if (result) {
this.shellLaunchConfig.color = result.id;
- this._onIconChanged.fire(this);
+ this._onIconChanged.fire({ instance: this, userInitiated: true });
}
quickPick.hide();