Skip to content

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

Merged
merged 7 commits into from
Jun 3, 2020

Conversation

DonJayamanne
Copy link

For #10496

  • Display success when successfully executed, error when there's an error else idle.

@@ -138,3 +139,34 @@ export function updateCellOutput(notebookCellModel: ICell, outputs: nbformat.IOu
};
model.update(updateCell);
}

export function updateCellMetadata(
Copy link
Author

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 {
Copy link
Author

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>;
Copy link
Author

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>;
Copy link
Author

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.

Copy link

@rchiodo rchiodo left a comment

Choose a reason for hiding this comment

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

:shipit:

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 3, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.1% 0.1% Duplication

@DonJayamanne DonJayamanne merged commit e44e746 into microsoft:master Jun 3, 2020
@DonJayamanne DonJayamanne deleted the cellStatus branch June 3, 2020 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog No news entry required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants