Fix #128843
This commit is contained in:
parent
8f774f132e
commit
15c8678229
2 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue