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; } /**