This commit is contained in:
Sandeep Somavarapu 2021-07-16 14:36:58 +02:00
parent 8f774f132e
commit 15c8678229
No known key found for this signature in database
GPG key ID: 1FED25EC4646638B
2 changed files with 2 additions and 1 deletions

View file

@ -154,7 +154,7 @@ export class ExtHostOutputService implements ExtHostOutputServiceShape {
if (!name) {
throw new Error('illegal argument `name`. must not be falsy');
}
return new ExtHostPushOutputChannel(extension.identifier.value, name, this._proxy);
return new ExtHostPushOutputChannel(name, extension.identifier.value, this._proxy);
}
createOutputChannelFromLogFile(name: string, file: URI): vscode.OutputChannel {

View file

@ -350,6 +350,7 @@ export class BufferredOutputChannel extends Disposable implements IOutputChannel
private createModel(content: string): ITextModel {
const model = this.modelService.createModel(content, this.modeService.create(this.mimeType), this.modelUri);
const disposable = model.onWillDispose(() => {
this.lastReadId = undefined;
this.model = null;
dispose(disposable);
});