-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Changing cell text does not include the cell change in the change event #145793
Comments
Fair question. Till now the thinking is that cells are always and only represented as Another question however is why the notebook change event has fired at all. When typing inside a cell the notebook shouldn't change |
Treating the fact that the event fires as you type in a cell as bug |
Looping in @dbaeumer for that and what LSP is doing? The |
In LSP I support two mode:
|
Folding them cannot be done because it is two IPC messages on the wire: one that updates the cell text document and one that updates the notebook document. But I can do the |
Pushed the contrary to what I said here. There is now |
My listening code is this: vscode.workspace.onDidChangeNotebookDocument(
(e: vscode.NotebookDocumentChangeEvent) => {
console.log(
`Change event fired for ${e.notebook.uri} => ${JSON.stringify(
e,
undefined,
" "
)}`
);
}
); |
😱 I see the same... |
Pushed a fix. This is a good sample of why unit tests aren't always enough - I simply didn't implement the renderer side of this and only relied on extension host side unit tests 🙃 |
Testing #145555
Output of event is this:
I expected there to be 'cellChanges'?
The text was updated successfully, but these errors were encountered: