From 048969ca9a0ae54062230c98114ce71a51ef0de8 Mon Sep 17 00:00:00 2001 From: Johannes Date: Wed, 15 May 2024 14:54:55 +0200 Subject: [PATCH] rename `LanguageModelChatResponse#stream` to `text` https://github.com/microsoft/vscode/issues/206265 --- src/vs/workbench/api/common/extHostLanguageModels.ts | 2 +- src/vscode-dts/vscode.proposed.languageModels.d.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/vs/workbench/api/common/extHostLanguageModels.ts b/src/vs/workbench/api/common/extHostLanguageModels.ts index a97ec1648ba42..09336569a7519 100644 --- a/src/vs/workbench/api/common/extHostLanguageModels.ts +++ b/src/vs/workbench/api/common/extHostLanguageModels.ts @@ -60,7 +60,7 @@ class LanguageModelResponse { const that = this; this.apiObject = { // result: promise, - stream: that._defaultStream.asyncIterable, + text: that._defaultStream.asyncIterable, // streams: AsyncIterable[] // FUTURE responses per N }; } diff --git a/src/vscode-dts/vscode.proposed.languageModels.d.ts b/src/vscode-dts/vscode.proposed.languageModels.d.ts index f2614f8709e56..b95804245da4c 100644 --- a/src/vscode-dts/vscode.proposed.languageModels.d.ts +++ b/src/vscode-dts/vscode.proposed.languageModels.d.ts @@ -100,8 +100,7 @@ declare module 'vscode' { * To cancel the stream, the consumer can {@link CancellationTokenSource.cancel cancel} the token that was used to make the request * or break from the for-loop. */ - // TODO@API rename: text - stream: AsyncIterable; + text: AsyncIterable; } /**