Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notebooks onDidChangeCellOutput does not work #145259

Closed
alyssajotice opened this issue Mar 16, 2022 · 7 comments
Closed

Notebooks onDidChangeCellOutput does not work #145259

alyssajotice opened this issue Mar 16, 2022 · 7 comments
Assignees
Labels

Comments

@alyssajotice
Copy link

Does this issue occur when all extensions are disabled?: Yes

Version: 1.66.0-insider (user setup)
Commit: 3e5c7e2
Date: 2022-03-14T05:15:38.097Z
Electron: 17.1.1
Chromium: 98.0.4758.109
Node.js: 16.13.0
V8: 9.8.177.11-electron.0
OS: Windows_NT x64 10.0.22000

The function NotebookEditor.onDidChangeCellOutput is not called when a cell's output is updated.

Steps to Reproduce:

  1. Install the extension below.
  2. Put a breakpoint in onDidChangeCelLoutputs
  3. Execute a cell, ensure there is output
  4. Observe breakpoint

Expected: onDidChangeCellOutput is called.

Actual: onDidChanceCellOutput is not called.

extension.ts:

import * as vscode from 'vscode';
export function activate(context: vscode.ExtensionContext) {
	context.subscriptions.push(vscode.notebooks.onDidChangeCellOutputs((e) => onDidChangeCellOutputs(e)));
}

function onDidChangeCellOutputs(e: vscode.NotebookCellOutputsChangeEvent) {
	console.log(e.document.uri.toString());
}

package.json:

"enabledApiProposals": ["notebookEditor"],

Zip:
onDidChangeCellOutput.zip

cc @rebornix

@rebornix
Copy link
Member

Starting from @jrieken, not sure if recent changes have impact on this.

@jrieken
Copy link
Member

jrieken commented Mar 21, 2022

Starting from @jrieken, not sure if recent changes have impact on this.

Should not have changed. However, the event is marked deprecated and should not be used. Please migrate to notebookDocumentEvents

@jrieken
Copy link
Member

jrieken commented Mar 24, 2022

Closing as won't fix. The event will be removed next week, the new event should be used and issues should be filed against that.

@jrieken jrieken closed this as completed Mar 24, 2022
@alyssajotice
Copy link
Author

@jrieken I don't think Live Share has access to this API. Can you give us permission? This is what I see when I try to add it:
image

jrieken added a commit that referenced this issue Mar 25, 2022
@jrieken
Copy link
Member

jrieken commented Mar 25, 2022

Done!

@alyssajotice
Copy link
Author

@jrieken can you confirm that this will be released to stable with the April release?

@jrieken
Copy link
Member

jrieken commented Mar 29, 2022

Confirmed

@github-actions github-actions bot locked and limited conversation to collaborators May 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants