-
Notifications
You must be signed in to change notification settings - Fork 30.8k
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
Make notebook status bar contributable #104958
Comments
A couple ways to think about this
In the use cases we care about, there are some items that we will want to add only to a particular cell, and also cases where we want to add an item to, say, every markdown cell. The dynamic option will be inconvenient for getting items to show up on new cells. The static option would work if we had the ability to dynamically change custom context keys for different cells. As far as I know, we can only set global custom context keys ( I think this would also be a new contribution point unless these things are registered in code. I don't think it would fit into "menus". |
And there is also work going to support working with complex context keys here #104625 |
The things that should go into the contribution look basically like
I think it's not clear that all these things can be known statically. I need to know more about use-cases in Python. |
Talking to Kai, we clearly need a statusbar-like API, we may also have a toolbar-type API, but these are distinct usecases. namespace notebook {
export function createCellStatusBarItem(cell: NotebookCell, alignment?: StatusBarAlignment, priority?: number): NotebookCellStatusBarItem;
}
export interface NotebookCellStatusBarItem {
readonly cell: NotebookCell;
readonly alignment: StatusBarAlignment;
readonly priority?: number;
text: string;
tooltip: string | undefined;
color: string | ThemeColor | undefined;
command: string | Command | undefined;
accessibilityInformation?: AccessibilityInformation;
show(): void;
hide(): void;
dispose(): void;
} |
It would be great if extensions could provide richer functionality via the status bar, like we currently do in our Core status bar. One idea is this will allow for extensions to provide content actions that are separate from cell actions, like a Markdown WYSIWYG:
The text was updated successfully, but these errors were encountered: