diff --git a/api/proposed.js b/api/proposed.js index 2faace2e71a..754b196af80 100644 --- a/api/proposed.js +++ b/api/proposed.js @@ -23,7 +23,6 @@ const tab = ' '; // 4 spaces used as tab size in source formatting. const newModuleDeclaration = `declare module '@vscode/jupyter-extension' {`; fs.readdirSync(path.join(__dirname, '../src')).forEach((file) => { if (file.startsWith('api.proposed.') && file.endsWith('.d.ts')) { - console.error(file); let source = fs.readFileSync(path.join(__dirname, '../src', file), 'utf8').toString(); let foundFirstExport = false; const newSource = source diff --git a/src/api.proposed.chatMessages.d.ts b/src/api.proposed.chatMessages.d.ts index 70d7860a2ea..68aa82f66a9 100644 --- a/src/api.proposed.chatMessages.d.ts +++ b/src/api.proposed.chatMessages.d.ts @@ -2,24 +2,25 @@ // Licensed under the MIT License. import { CancellationToken } from 'vscode'; -import { Output } from './api'; -/** - * Represents a Jupyter Kernel. - */ -export interface Kernel { +declare module './api' { /** - * Executes code specific to chat in the Python kernel without affecting the execution count & execution history. - * Supports the ability to handle messages from the kernel. - * - * @param code Code to be executed. - * @param handlers Callbacks for handling messages from the kernel. - * @param token Triggers the cancellation of the execution. - * @returns Async iterable of outputs, that completes when the execution is complete. + * Represents a Jupyter Kernel. */ - executeChatCode( - code: string, - handlers: Record Promise>, - token: CancellationToken - ): AsyncIterable; + export interface Kernel { + /** + * Executes code specific to chat in the Python kernel without affecting the execution count & execution history. + * Supports the ability to handle messages from the kernel. + * + * @param code Code to be executed. + * @param handlers Callbacks for handling messages from the kernel. + * @param token Triggers the cancellation of the execution. + * @returns Async iterable of outputs, that completes when the execution is complete. + */ + executeChatCode( + code: string, + handlers: Record Promise>, + token: CancellationToken + ): AsyncIterable; + } }