-
Notifications
You must be signed in to change notification settings - Fork 28.6k
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
Support Notebook comments on Markup cells #214332
Comments
@rehmsen that was a pretty early exploration and we don't have support for the notebook commenting officially. With that said, I'm good with PRs for enabling it for Markup cell. |
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation. Happy Coding! |
I took a look at this today and wanted to propose a rough plan for how to implement this:
@alexr00 @rebornix Please let me know if that sounds good to you. |
…layouting function. microsoft#214332. The cellComments should not have to know about outputs. The reason this is undesirable is that these exist only for code cells, not for markup cells - and I would like to make cellComments work for markup cells as well.
…llLayoutInfo. microsoft#214332. Some layouting tasks, like soon layouting comments, should not have to deal with this distinction. I am extracting the fields that are already shared into an interface that other code can use without differentiating. I am not yet actually moving their computation into a separate file, as that will require some small behavior changes.
…layouting function. microsoft#214332. The cellComments should not have to know about outputs. The reason this is undesirable is that these exist only for code cells, not for markup cells - and I would like to make cellComments work for markup cells as well.
…llLayoutInfo. microsoft#214332. Some layouting tasks, like soon layouting comments, should not have to deal with this distinction. I am extracting the fields that are already shared into an interface that other code can use without differentiating. I am not yet actually moving their computation into a separate file, as that will require some small behavior changes.
@rehmsen could I get some verification steps for this feature request? |
@rebornix Can you help? I also do not know how to add a code review comment for a notebook via the UI. We have a closed source extension which registers a comment provider that creates notebook comments, and I verified that those work on Markdown cells with the fix. Open source I know that the Github Pull Requests extension provides Github comments, but those are always left on the raw file, not on notebook cells, see #214017 - I have suggested some ideas how one might fix that, but we have not reached agreement yet. I there some other way to create a notebook comment @rebornix? I guess you had some way to verify this when you build the original comment support? Regarding the diff editor, editing the right side is expected I think - the left side should not be editable. Is it? Is that caused by my change somehow? I tried to repro, but when I run ./scripts/code-web.sh, I cannot install any notebook extension (like jupyter) in the first place. |
Marking this issue as verified considering the fix works for you. Also, the left side of the diff editor is not modifiable. I'll check whether the diff editor is modifiable on the right side on Stable. Edit: I have confirmed that the diff editor has not regressed. |
I would like code review comments in notebooks to also work on non-code cells. Currently the code explicitly filters to only code cells, I am not sure why:
vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.ts
Lines 157 to 164 in dee8eaf
Is there a reason why comments on markup cells should be hidden, or would you accept a PR to add support for comments on Markup Cells?
@alexr00
The text was updated successfully, but these errors were encountered: