Skip to content

Commit

Permalink
Document execution result mime types (#14794)
Browse files Browse the repository at this point in the history
* documentMimeTypes

* Update src/api.proposed.kernelApi.d.ts

Co-authored-by: Raymond Zhao <[email protected]>

* Update src/api.proposed.kernelApi.d.ts

Co-authored-by: Raymond Zhao <[email protected]>

---------

Co-authored-by: Raymond Zhao <[email protected]>
  • Loading branch information
DonJayamanne and rzhao271 authored Nov 27, 2023
1 parent ce5f523 commit 9b56f87
Showing 1 changed file with 9 additions and 2 deletions.
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`)
* - `application/vnd.code.notebook.error`: The output is a stream of stderr. (same as `NotebookCellOutputItem.error(...).mime`)
*
*/
mime: string;
/**
Expand Down

0 comments on commit 9b56f87

Please sign in to comment.