Skip to content

Introduce multi-cell selection commenting - #221978

Merged
Michael Lively (Yoyokrazy) merged 3 commits into
mainfrom
milively/comment-sel-cells
Jul 18, 2024
Merged

Michael Lively (Yoyokrazy) merged 3 commits into
mainfrom
milively/comment-sel-cells

Conversation

@Yoyokrazy

Copy link
Copy Markdown
Collaborator

Fixes: #142437

@Yoyokrazy
Michael Lively (Yoyokrazy) enabled auto-merge (squash) July 17, 2024 21:33
@Yoyokrazy
Michael Lively (Yoyokrazy) deleted the milively/comment-sel-cells branch July 18, 2024 11:30
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';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our scenario is simpler, I wonder if we can move off the editor command so it can work for cells out of viewport.

@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Sep 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow commenting out/uncommenting multiple cells all at once

5 participants