Skip to content
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

ValueInfo improvement #2607

Merged
merged 3 commits into from
Jan 10, 2023
Merged

ValueInfo improvement #2607

merged 3 commits into from
Jan 10, 2023

Conversation

colombod
Copy link
Member

@colombod colombod commented Jan 10, 2023

The valueInfo event contains type information and formatted value to be used in variable explorer.
There is no need to query each individual variable
image

@@ -153,7 +153,7 @@ public Task<Kernel> CreateKernelAsync(string kernelName, BrowserKernelLanguage l
{
context.Publish(new ValueInfosProduced(new KernelValueInfo[]
{
new(":root", typeof(ILocator))
new(":root", new FormattedValue(PlainTextFormatter.MimeType,"document root"),typeof(ILocator))
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think types for the HTML kernel shared values makes sense yet.

Copy link
Member Author

Choose a reason for hiding this comment

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

what should be the formatted type here?

Co-authored-by: Jon Sequeira <jonsequeira@gmail.com>
@colombod colombod merged commit 45db0c6 into dotnet:main Jan 10, 2023
@colombod colombod deleted the improve_value_info branch January 10, 2023 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants