Repository navigation
Introduce multi-cell selection commenting - #221978
Merged
Merged
Conversation
Daniel Imms (Tyriar)
previously requested changes
Jul 17, 2024
Michael Lively (Yoyokrazy)
enabled auto-merge (squash)
July 17, 2024 21:33
Don Jayamanne (DonJayamanne)
previously approved these changes
Jul 17, 2024
Michael Lively (Yoyokrazy)
requested review from
Don Jayamanne (DonJayamanne) and
Daniel Imms (Tyriar)
July 17, 2024 21:38
Michael Lively (Yoyokrazy)
dismissed
Daniel Imms (Tyriar)’s stale review
July 17, 2024 21:39
addressed + discussed w notebook ppl
Daniel Imms (Tyriar)
approved these changes
Jul 18, 2024
| const DELETE_CELL_COMMAND_ID = 'notebook.cell.delete'; | ||
| export const CLEAR_CELL_OUTPUTS_COMMAND_ID = 'notebook.cell.clearOutputs'; | ||
| export const SELECT_NOTEBOOK_INDENTATION_ID = 'notebook.selectIndentation'; | ||
| export const COMMENT_SELECTED_CELLS_ID = 'notebook.commentSelectedCells'; |
Contributor
There was a problem hiding this comment.
It would be nicer we put this in notebook/browser/contrib/comment other than notebook core.
| constructor() { | ||
| super({ | ||
| id: COMMENT_SELECTED_CELLS_ID, | ||
| title: localize('commentSelectedCells', "Comment Selected Cells"), |
Contributor
There was a problem hiding this comment.
Since it actually toggles the commenting state, would it make sense to include "Toggle" in the command title?
| const modelOptions = model.getOptions(); | ||
| const commentsOptions = editor.getOption(EditorOption.comments); | ||
|
|
||
| commands.push(new LineCommentCommand( |
Contributor
There was a problem hiding this comment.
Our scenario is simpler, I wonder if we can move off the editor command so it can work for cells out of viewport.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes: #142437