forked from haystackeditor/haystack-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't register chat participants in stable (#213244)
* Don't register chat participants in stable And fork some Additions APIs into chatParticipantPrivate * Remove stale proposals * Move more API out of Additions
- Loading branch information
1 parent
4ebc77f
commit b9d35d9
Showing
8 changed files
with
175 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 76 additions & 0 deletions
76
src/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
declare module 'vscode' { | ||
|
||
/** | ||
* The location at which the chat is happening. | ||
*/ | ||
export enum ChatLocation { | ||
/** | ||
* The chat panel | ||
*/ | ||
Panel = 1, | ||
/** | ||
* Terminal inline chat | ||
*/ | ||
Terminal = 2, | ||
/** | ||
* Notebook inline chat | ||
*/ | ||
Notebook = 3, | ||
/** | ||
* Code editor inline chat | ||
*/ | ||
Editor = 4 | ||
} | ||
|
||
export interface ChatRequest { | ||
/** | ||
* The attempt number of the request. The first request has attempt number 0. | ||
*/ | ||
readonly attempt: number; | ||
|
||
/** | ||
* If automatic command detection is enabled. | ||
*/ | ||
readonly enableCommandDetection: boolean; | ||
|
||
/** | ||
* The location at which the chat is happening. This will always be one of the supported values | ||
*/ | ||
readonly location: ChatLocation; | ||
} | ||
|
||
export interface ChatParticipant { | ||
supportIssueReporting?: boolean; | ||
|
||
/** | ||
* Temp, support references that are slow to resolve and should be tools rather than references. | ||
*/ | ||
supportsSlowReferences?: boolean; | ||
} | ||
|
||
export interface ChatErrorDetails { | ||
/** | ||
* If set to true, the message content is completely hidden. Only ChatErrorDetails#message will be shown. | ||
*/ | ||
responseIsRedacted?: boolean; | ||
} | ||
|
||
export namespace chat { | ||
export function createDynamicChatParticipant(id: string, dynamicProps: DynamicChatParticipantProps, handler: ChatExtendedRequestHandler): ChatParticipant; | ||
} | ||
|
||
/** | ||
* These don't get set on the ChatParticipant after creation, like other props, because they are typically defined in package.json and we want them at the time of creation. | ||
*/ | ||
export interface DynamicChatParticipantProps { | ||
name: string; | ||
publisherName: string; | ||
description?: string; | ||
fullName?: string; | ||
} | ||
} |
Oops, something went wrong.