Skip to content

Support cell-level custom context from extensions #146686

@roblourens

Description

@roblourens

Notebook extensions often need to set a cell-level context for actions that are different per-cell. Currently there is no way to do that, except for workarounds like changing the global context based on the currently selected cell.

Examples: Run by line, #146353

Currently extensions can use the setContext command to set global context values. Custom trees allow setting a single context value on individual items with the contextValue property. I think that only the tree provider can set this. In notebooks we would ideally allow different extensions to set different context key/values on a cell.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions