-
Notifications
You must be signed in to change notification settings - Fork 385
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
handle the case kernelinfo si deserialised as dicittionary #2576
Conversation
} | ||
|
||
// todo: the kernelInfo should not deserialize as a dictionary | ||
if (kernelInfoObj is Dictionary<string,object> kernelInfoAsDictionary) |
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.
Is there a test for the issue this is intended to resolve?
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.
Just added a test that uses serialize and parse request. Serialize touches the new code. The document used in test comes from a vscode serialize request.
b1383ca
to
fe9faca
Compare
[Fact] | ||
public void Notebook_parser_server_can_handle_serialize_requests() | ||
{ | ||
var request = @"{ |
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.
@jonsequitur this request is taken from vscode
From vscode invocation the document is deserialized and the medatadata now is a dictionary. This fixes saving notebooks