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

Document execution result mime types #14794

Merged
merged 5 commits into from
Nov 27, 2023
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/api.proposed.kernelApi.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import type { CancellationToken, Event, Uri } from 'vscode';
import type { CancellationToken, Uri } from 'vscode';

declare module './api' {
interface OutputItem {
/**
* The mime type of the output
* The mime type of the output.
* Includes standard mime types (but not limited to) `text/plain`, `application/json`, `text/html`, etc.
*
* Special mime types are:
* - `application/x.notebook.stream.stdout`: The output is a stream of stdout. (same as `NotebookCellOutputItem.stdout('').mime`)
* - `application/x.notebook.stream.stderr`: The output is a stream of stderr. (same as NotebookCellOutputItem.stderr('').mime)
DonJayamanne marked this conversation as resolved.
Show resolved Hide resolved
* - `application/vnd.code.notebook.error`: The output is a stream of stderr. (same as NotebookCellOutputItem.error(...).mime)
DonJayamanne marked this conversation as resolved.
Show resolved Hide resolved
*
*/
mime: string;
/**
Expand Down
Loading