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

use formatted value in the value kernel #2680

Merged
merged 2 commits into from
Feb 3, 2023

Conversation

colombod
Copy link
Member

@colombod colombod commented Feb 3, 2023

No description provided.

@colombod colombod linked an issue Feb 3, 2023 that may be closed by this pull request
@colombod colombod enabled auto-merge (rebase) February 3, 2023 16:59
@colombod colombod merged commit cbf5f86 into dotnet:main Feb 3, 2023
@@ -182,7 +183,7 @@ void UndoSetValue()
ValueDirectiveOptions options,
KernelInvocationContext context)
{
_values[options.Name] = value;
_values[options.Name] = new FormattedValue(options.MimeType ?? PlainTextFormatter.MimeType, value);
Copy link
Contributor

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 fallback to text/plain?

Copy link
Member Author

Choose a reason for hiding this comment

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

at the moment is a leap of faith, but a test is more inclusive, let me address that

@colombod colombod deleted the value_kernel_mimetypes branch February 3, 2023 20:11
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.

value kernel should keep mimetype
3 participants