Skip to content

Commit

Permalink
Update variable name for kernel channel
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasilge committed Sep 30, 2024
1 parent 133a462 commit 8ff2412
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions extensions/jupyter-adapter/src/JupyterKernel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class JupyterKernel extends EventEmitter implements vscode.Disposable {
private _terminal?: vscode.Terminal;

/** The channel to which output for this specific kernel is logged, if any */
private _logChannel?: vscode.OutputChannel;
private _kernelChannel?: vscode.OutputChannel;

/** An optional profiler channel */
private _profileChannel?: vscode.OutputChannel;
Expand Down Expand Up @@ -326,8 +326,8 @@ export class JupyterKernel extends EventEmitter implements vscode.Disposable {
{ log: true });
}

if (!this._logChannel) {
this._logChannel = positron.window.createRawLogOutputChannel(
if (!this._kernelChannel) {
this._kernelChannel = positron.window.createRawLogOutputChannel(
`Kernel: ${this._spec.display_name}`);
}

Expand All @@ -353,7 +353,7 @@ export class JupyterKernel extends EventEmitter implements vscode.Disposable {
if (fs.existsSync(logFilePath)) {
this.log('Streaming log file: ' + logFilePath);

this._logStreamer = new LogStreamer(this._logChannel, logFilePath, this._spec.language);
this._logStreamer = new LogStreamer(this._kernelChannel, logFilePath, this._spec.language);
this._disposables.push(this._logStreamer);

this._logStreamer.watch();
Expand Down Expand Up @@ -1593,7 +1593,7 @@ export class JupyterKernel extends EventEmitter implements vscode.Disposable {
* Show kernel log in output panel.
*/
public showOutput() {
this._logChannel?.show();
this._kernelChannel?.show();
}

public async showProfile() {
Expand Down

0 comments on commit 8ff2412

Please sign in to comment.