-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Updates to cell status displayed in VS Code Notebooks #12126
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
Conversation
@@ -138,3 +139,34 @@ export function updateCellOutput(notebookCellModel: ICell, outputs: nbformat.IOu | |||
}; | |||
model.update(updateCell); | |||
} | |||
|
|||
export function updateCellMetadata( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added cuz we need this.
Not used as we will need to discuss the implications etc.. (will book meeting to discuss this)
import { JSONObject } from '@phosphor/coreutils'; | ||
|
||
// This is the custom type we are adding into nbformat.IBaseCellMetadata | ||
export interface IBaseCellVSCodeMetadata { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overriding to add custom metadata with strong typing.
This IBaseCellVSCodeMetadata
is the only new change along with a property, rest has been copied from jupyter.
/** | ||
* VS Code cell metadata. | ||
*/ | ||
vscode: Partial<IBaseCellVSCodeMetadata>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's the new optional property we're adding with strong typing.
/** | ||
* VS Code cell metadata. | ||
*/ | ||
vscode?: Partial<IBaseCellVSCodeMetadata>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our custom metadata to be stored in jupyter cell.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kudos, SonarCloud Quality Gate passed!
|
For #10496