Skip to content

Commit 90a8b49

Browse files
committed
Cleanup
1 parent cc77053 commit 90a8b49

File tree

3 files changed

+3
-19
lines changed

3 files changed

+3
-19
lines changed

extensions/markdown-language-features/src/extension.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export async function activate(context: vscode.ExtensionContext) {
1818

1919
const logger = new VsCodeOutputLogger();
2020
context.subscriptions.push(logger);
21+
2122
const engine = new MarkdownItEngine(contributions, githubSlugifier, logger);
2223

2324
const client = await startServer(context, engine);

src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ export interface RenderedOutputPart extends IDisposable {
3535
readonly onDidChangeHeight: Event<number>;
3636
}
3737

38-
/**
39-
* Service for rendering chat output items with special MIME types using registered renderers from extensions.
40-
*/
4138
export interface IChatOutputRendererService {
4239
readonly _serviceBrand: undefined;
4340

@@ -46,11 +43,6 @@ export interface IChatOutputRendererService {
4643
renderOutputPart(mime: string, data: Uint8Array, parent: HTMLElement, token: CancellationToken): Promise<RenderedOutputPart>;
4744
}
4845

49-
/**
50-
* Implementation of the IChatOutputItemRendererService.
51-
* This service connects with the MainThreadChatResponseOutputRenderer to render output parts
52-
* in chat responses using extension-provided renderers.
53-
*/
5446
export class ChatOutputRendererService extends Disposable implements IChatOutputRendererService {
5547
_serviceBrand: undefined;
5648

src/vscode-dts/vscode.proposed.chatOutputRenderer.d.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,9 @@ declare module 'vscode' {
4949
/**
5050
* Registers a new renderer for a given mime type.
5151
*
52-
* Note: To use this API, you should also add a contribution point in your extension's
53-
* package.json:
52+
* Note: make sure to use the `onChatOutputRenderer:mime` activation event in your extension's `package.json` to ensure that the renderer is registered.
5453
*
55-
* ```json
56-
* "contributes": {
57-
* "chatOutputRenderer": [
58-
* {
59-
* "mimeTypes": ["application/your-mime-type"]
60-
* }
61-
* ]
62-
* }
63-
* ```
54+
* TODO:should this be a contribution instead?
6455
*
6556
* @param mime The MIME type of the output that this renderer can handle.
6657
* @param renderer The renderer to register.

0 commit comments

Comments
 (0)