Skip to content

Commit 289d7b7

Browse files
authored
1 parent 06d3f37 commit 289d7b7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/vs/platform/extensionManagement/node/extensionLifecycle.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,19 +116,19 @@ export class ExtensionsLifecycle extends Disposable {
116116
const onStderr = Event.fromNodeEventEmitter<string>(extensionUninstallProcess.stderr!, 'data');
117117

118118
// Log output
119-
onStdout(data => this.logService.info(extension.identifier.id, extension.manifest.version, `post-${lifecycleType}`, data));
120-
onStderr(data => this.logService.error(extension.identifier.id, extension.manifest.version, `post-${lifecycleType}`, data));
119+
this._register(onStdout(data => this.logService.info(extension.identifier.id, extension.manifest.version, `post-${lifecycleType}`, data)));
120+
this._register(onStderr(data => this.logService.error(extension.identifier.id, extension.manifest.version, `post-${lifecycleType}`, data)));
121121

122122
const onOutput = Event.any(
123-
Event.map(onStdout, o => ({ data: `%c${o}`, format: [''] })),
124-
Event.map(onStderr, o => ({ data: `%c${o}`, format: ['color: red'] }))
123+
Event.map(onStdout, o => ({ data: `%c${o}`, format: [''] }), this._store),
124+
Event.map(onStderr, o => ({ data: `%c${o}`, format: ['color: red'] }), this._store)
125125
);
126126
// Debounce all output, so we can render it in the Chrome console as a group
127127
const onDebouncedOutput = Event.debounce<Output>(onOutput, (r, o) => {
128128
return r
129129
? { data: r.data + o.data, format: [...r.format, ...o.format] }
130130
: { data: o.data, format: o.format };
131-
}, 100);
131+
}, 100, undefined, undefined, undefined, this._store);
132132

133133
// Print out output
134134
onDebouncedOutput(data => {

0 commit comments

Comments
 (0)