Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/**
* A terminal that is created on the extension host side is temporarily assigned
* a UUID by the extension host that created it. Once the renderer side has assigned
* a real numeric id, the numeric id will be used.
*
* All other terminals (that are not created on the extension host side) always
* use the numeric id.
*/
export
type
ExtHostTerminalIdentifier
=
number
|
string
;
export
interface
TerminalLaunchConfig
{
?
:
string
;
?
:
string
;
?
:
string
[
]
|
string
;
?
:
string
|
;
?
:
;
?
:
URI
|
{
:
URI
;
:
URI
}
|
;
?
:
string
;
?
:
string
;
?
:
boolean
;
?
:
boolean
;
?
:
boolean
;
?
:
boolean
;
?
:
boolean
;
?
:
boolean
;
?
:
boolean
;
?
:
boolean
;
?
:
boolean
;
?
:
|
{
:
number
;
?
:
boolean
}
|
{
:
}
|
{
:
boolean
}
;
?
:
boolean
;
?
:
string
;
?
:
string
;
}
export
interface
MainThreadTerminalServiceShape
extends
IDisposable
{
$createTerminal
(
:
string
,
:
)
:
Promise
<
void
>
;
$dispose
(
:
)
:
void
;
$hide
(
:
)
:
void
;
$sendText
(
:
,
:
string
,
:
boolean
)
:
void
;
$show
(
:
,
:
boolean
)
:
void
;
$registerProcessSupport
(
:
boolean
)
:
void
;
$registerProfileProvider
(
:
string
,
:
string
)
:
void
;
$unregisterProfileProvider
(
:
string
)
:
void
;
$registerCompletionProvider
(
:
string
,
:
string
,
...
:
string
[
]
)
:
void
;
$unregisterCompletionProvider
(
:
string
)
:
void
;
$registerQuickFixProvider
(
:
string
,
:
string
)
:
void
;
$unregisterQuickFixProvider
(
:
string
)
:
void
;
$setEnvironmentVariableCollection
(
:
string
,
:
boolean
,
:
|
undefined
,
:
)
:
void
;
// Optional event toggles
$startSendingDataEvents
(
)
:
void
;
$stopSendingDataEvents
(
)
:
void
;
$startSendingCommandEvents
(
)
:
void
;
$stopSendingCommandEvents
(
)
:
void
;
$startLinkProvider
(
)
:
void
;
$stopLinkProvider
(
)
:
void
;
// Process
$sendProcessData
(
:
number
,
:
string
)
:
void
;
$sendProcessReady
(
:
number
,
:
number
,
:
string
,
:
|
undefined
)
:
void
;
$sendProcessProperty
(
:
number
,
:
<
any
>
)
:
void
;
$sendProcessExit
(
:
number
,
:
number
|
undefined
)
:
void
;
}
export
interface
MainThreadTerminalShellIntegrationShape
extends
IDisposable
{
$executeCommand
(
:
number
,
:
string
)
:
void
;
}
export
type
TransferQuickPickItemOrSeparator
=
|
.
;
export
interface
TransferQuickPickItem
{
:
number
;
// shared properties from IQuickPickItem
?
:
'item'
;
:
string
;
?
:
;
?
:
string
;
?
:
string
;
?
:
boolean
;
?
:
boolean
;
?
:
[
]
;
?
:
;
// TODO: These properties are not used for transfer (iconPathDto is used instead) but they cannot be removed
// because this type is used as IQuickPickItem on the main thread. Ideally IQuickPickItem should also use IconPath.
?
:
{
?
:
URI
;
:
URI
}
;
?
:
string
;
}
export
interface
TransferQuickInputButton
extends
quickInput
.
{
:
number
;
:
;
?
:
{
:
boolean
}
;
// TODO: These properties are not used for transfer (iconPathDto is used instead) but they cannot be removed
// because this type is used as IQuickInputButton on the main thread. Ideally IQuickInputButton should also use IconPath.
// Decided not to go with simple index here due to opening and closing causing index shifts
// This allows us to patch the model without having to do full rebuilds
:
[
]
;
:
number
;
}
export
interface
TabOperation
{
readonly
:
.
TAB_OPEN
|
.
TAB_CLOSE
|
.
TAB_UPDATE
|
.
TAB_MOVE
;
// TODO @lramos15 Possibly get rid of index for tab update, it's only needed for open and close
readonly
:
number
;
readonly
:
;
readonly
:
number
;
readonly
?
:
number
;
}
export
interface
IEditorTabDto
{
:
string
;
:
string
;
:
;
?
:
string
;
:
boolean
;
:
boolean
;
:
boolean
;
:
boolean
;
}
export
interface
IExtHostEditorTabsShape
{
// Accepts a whole new model
$acceptEditorTabModel
(
:
[
]
)
:
void
;
// Only when group property changes (not the tabs inside)
$acceptTabGroupUpdate
(
:
)
:
void
;
// When a tab is added, removed, or updated
$acceptTabOperation
(
:
)
:
void
;
}
//#endregion
export
type
WebviewHandle
=
string
;
export
interface
WebviewPanelShowOptions
{
readonly
?
:
;
readonly
?
:
boolean
;
}
export
interface
WebviewExtensionDescription
{
readonly
:
;
readonly
:
;
}
export
enum
{
,
,
}
export
interface
IWebviewPortMapping
{
readonly
:
number
;
readonly
:
number
;
}
export
interface
IWebviewContentOptions
{
readonly
?
:
boolean
;
readonly
?
:
boolean
;
readonly
?
:
boolean
|
readonly
string
[
]
;
readonly
?
:
readonly
[
]
;
readonly
?
:
readonly
[
]
;
}
export
interface
IWebviewPanelOptions
{
readonly
?
:
boolean
;
readonly
?
:
boolean
;
}
export
interface
CustomEditorProviderCapabilities
{
readonly
?
:
boolean
;
readonly
?
:
boolean
;
readonly
?
:
boolean
;
}
export
interface
CustomEditorDiffInitData
{
readonly
:
string
;
readonly
:
;
readonly
:
;
readonly
:
boolean
;
}
export
interface
CustomEditorSideBySideDiffWebviewHandles
{
readonly
:
;
readonly
:
;
}
export
interface
CustomEditorSideBySideDiffInitData
{
readonly
:
;
readonly
:
;
}
export
const
enum
{
=
1
,
=
2
,
=
3
,
=
4
,
=
5
,
=
6
,
=
7
,
=
8
,
=
9
,
=
10
,
=
11
,
}
export
interface
WebviewMessageArrayBufferReference
{
readonly
:
true
;
readonly
:
number
;
/**
* Tracks if the reference is to a view instead of directly to an ArrayBuffer.
*/
readonly
?
:
{
readonly
:
;
readonly
:
number
;
readonly
:
number
;
}
;
}
export
interface
MainThreadWebviewsShape
extends
IDisposable
{
$setHtml
(
:
,
:
string
)
:
void
;
$setOptions
(
:
,
:
)
:
void
;
$postMessage
(
:
,
:
string
,
...
:
[
]
)
:
Promise
<
boolean
>
;
}
export
type
IWebviewIconPath
=
|
{
readonly
:
;
readonly
:
;
}
;
export
interface
IWebviewInitData
{
readonly
:
string
;
readonly
:
;
readonly
:
;
readonly
:
boolean
;
}
export
interface
MainThreadWebviewPanelsShape
extends
IDisposable
{
$createWebviewPanel
(
:
,
:
,
:
string
,
:
,
:
,
)
:
void
;
$disposeWebview
(
:
)
:
void
;
$reveal
(
:
,
:
)
:
void
;
$setTitle
(
:
,
:
string
)
:
void
;
$setIconPath
(
:
,
:
|
undefined
)
:
void
;
$registerSerializer
(
:
string
,
:
{
:
boolean
}
)
:
void
;
$unregisterSerializer
(
:
string
)
:
void
;
}
export
interface
MainThreadCustomEditorsShape
extends
IDisposable
{
$registerTextEditorProvider
(
:
,
:
string
,
:
,
:
,
:
boolean
)
:
void
;
$registerCustomEditorProvider
(
:
,
:
string
,
:
,
:
,
:
boolean
,
:
boolean
)
:
void
;
$unregisterEditorProvider
(
:
string
)
:
void
;
$onDidEdit
(
:
,
:
string
,
:
number
,
:
string
|
undefined
)
:
void
;
$onContentChange
(
:
,
:
string
)
:
void
;
}
export
interface
MainThreadWebviewViewsShape
extends
IDisposable
{
$registerWebviewViewProvider
(
:
,
:
string
,
:
{
?
:
boolean
;
:
boolean
}
)
:
void
;
$unregisterWebviewViewProvider
(
:
string
)
:
void
;
$setWebviewViewTitle
(
:
,
:
string
|
undefined
)
:
void
;
$setWebviewViewDescription
(
:
,
:
string
|
undefined
)
:
void
;
$setWebviewViewBadge
(
:
,
:
|
undefined
)
:
void
;
$show
(
:
,
:
boolean
)
:
void
;
}
export
interface
WebviewPanelViewStateData
{
[
:
string
]
:
{
readonly
:
boolean
;
readonly
:
boolean
;
readonly
:
;
}
;
}
export
interface
ExtHostWebviewsShape
{
$onMessage
(
:
,
:
string
,
:
<
[
]
>
)
:
void
;
$onMissingCsp
(
:
,
:
string
)
:
void
;
}
export
interface
ExtHostWebviewPanelsShape
{
$onDidChangeWebviewPanelViewStates
(
:
)
:
void
;
$onDidDisposeWebviewPanel
(
:
)
:
Promise
<
void
>
;
$deserializeWebviewPanel
(
:
,
:
string
,
:
{
:
string
;
:
any
;
:
;
:
;
:
boolean
;
}
,
:
,
)
:
Promise
<
void
>
;
}
export
interface
ExtHostCustomEditorsShape
{
$resolveCustomEditor
(
:
,
:
,
:
string
,
:
{
:
string
;
:
;
:
;
:
boolean
;
}
,
:
,
:
)
:
Promise
<
void
>
;
$resolveCustomEditorInlineDiff
(
:
,
:
,
:
,
:
string
,
:
,
:
,
:
)
:
Promise
<
void
>
;
$resolveCustomEditorSideBySideDiff
(
:
,
:
,
:
,
:
string
,
:
,
:
,
:
)
:
Promise
<
void
>
;
$createCustomDocument
(
:
,
:
string
,
:
string
|
undefined
,
:
|
undefined
,
:
)
:
Promise
<
{
:
boolean
}
>
;
$disposeCustomDocument
(
:
,
:
string
)
:
Promise
<
void
>
;
$undo
(
:
,
:
string
,
:
number
,
:
boolean
)
:
Promise
<
void
>
;
$redo
(
:
,
:
string
,
:
number
,
:
boolean
)
:
Promise
<
void
>
;
$revert
(
:
,
:
string
,
:
)
:
Promise
<
void
>
;
$disposeEdits
(
:
,
:
string
,
:
number
[
]
)
:
void
;
$onSave
(
:
,
:
string
,
:
)
:
Promise
<
void
>
;
$onSaveAs
(
:
,
:
string
,
:
,
:
)
:
Promise
<
void
>
;
$backup
(
:
,
:
string
,
:
)
:
Promise
<
string
>
;
$onMoveCustomEditor
(
:
,
:
,
:
string
)
:
Promise
<
void
>
;
}
export
interface
ExtHostWebviewViewsShape
{
$resolveWebviewView
(
:
,
:
string
,
:
string
|
undefined
,
:
any
,
:
)
:
Promise
<
void
>
;
$onDidChangeWebviewViewVisibility
(
:
,
:
boolean
)
:
void
;
$disposeWebviewView
(
:
)
:
void
;
}
export
interface
MainThreadManagedSocketsShape
extends
IDisposable
{
$registerSocketFactory
(
:
number
)
:
Promise
<
void
>
;
$unregisterSocketFactory
(
:
number
)
:
Promise
<
void
>
;
$onDidManagedSocketHaveData
(
:
number
,
:
)
:
void
;
$onDidManagedSocketClose
(
:
number
,
:
string
|
undefined
)
:
void
;
$onDidManagedSocketEnd
(
:
number
)
:
void
;
}
export
interface
ExtHostManagedSocketsShape
{
$openRemoteSocket
(
:
number
)
:
Promise
<
number
>
;
$remoteSocketWrite
(
:
number
,
:
)
:
void
;
$remoteSocketEnd
(
:
number
)
:
void
;
$remoteSocketDrain
(
:
number
)
:
Promise
<
void
>
;
}
export
interface
MainThreadBrowserTunnelProxyShape
extends
IDisposable
{
$updateProxyInfo
(
:
|
undefined
)
:
void
;
}
export
interface
ExtHostBrowserTunnelProxyShape
{
$setEnabled
(
:
boolean
)
:
void
;
}
export
enum
{
=
1
,
=
2
,
=
3
}
export
enum
{
=
0
,
=
1
,
=
2
,
=
3
}
export
interface
INotebookDocumentShowOptions
{
?
:
;
?
:
boolean
;
?
:
boolean
;
?
:
[
]
;
?
:
string
;
}
export
type
INotebookCellStatusBarEntryDto
=
<
.
>
;
export
interface
INotebookCellStatusBarListDto
{
:
[
]
;
:
number
;
}
export
interface
MainThreadNotebookShape
extends
IDisposable
{
$registerNotebookSerializer
(
:
number
,
:
.
,
:
string
,
:
.
,
:
.
|
undefined
)
:
void
;
$unregisterNotebookSerializer
(
:
number
)
:
void
;
$registerNotebookCellStatusBarItemProvider
(
:
number
,
:
number
|
undefined
,
:
string
)
:
Promise
<
void
>
;
$unregisterNotebookCellStatusBarItemProvider
(
:
number
,
:
number
|
undefined
)
:
Promise
<
void
>
;
$emitCellStatusBarEvent
(
:
number
)
:
void
;
}
export
interface
MainThreadNotebookEditorsShape
extends
IDisposable
{
$tryShowNotebookDocument
(
:
,
:
string
,
:
)
:
Promise
<
string
>
;
$tryRevealRange
(
:
string
,
:
,
:
)
:
Promise
<
void
>
;
$trySetSelections
(
:
string
,
:
[
]
)
:
void
;
}
export
interface
MainThreadNotebookDocumentsShape
extends
IDisposable
{
$tryCreateNotebook
(
:
{
:
string
;
?
:
}
)
:
Promise
<
>
;
$tryOpenNotebook
(
:
)
:
Promise
<
>
;
$trySaveNotebook
(
:
)
:
Promise
<
boolean
>
;
}
export
interface
INotebookKernelDto2
{
:
string
;
:
string
;
:
;
:
;
:
string
;
?
:
string
;
?
:
string
;
?
:
string
[
]
;
?
:
boolean
;
?
:
boolean
;
?
:
{
:
;
:
readonly
string
[
]
}
[
]
;
?
:
boolean
;
}
export
interface
INotebookProxyKernelDto
{
:
string
;
:
string
;
:
;
:
;
:
string
;
?
:
string
;
?
:
string
;
?
:
string
;
}
export
interface
ICellExecuteOutputEditDto
{
:
.
;
:
number
;
?
:
boolean
;
:
[
]
;
}
export
interface
ICellExecuteOutputItemEditDto
{
:
.
;
?
:
boolean
;
:
string
;
:
[
]
;
}
export
interface
ICellExecutionStateUpdateDto
extends
ICellExecutionStateUpdate
{
}
export
interface
ICellExecutionCompleteDto
extends
ICellExecutionComplete
{
}
export
type
ICellExecuteUpdateDto
=
|
|
;
export
interface
VariablesResult
{
:
number
;
:
string
;
:
string
;
?
:
string
;
?
:
string
;
?
:
string
;
:
boolean
;
:
number
;
:
string
;
}
export
interface
MainThreadNotebookKernelsShape
extends
IDisposable
{
$postMessage
(
:
number
,
:
string
|
undefined
,
:
any
)
:
Promise
<
boolean
>
;
$addKernel
(
:
number
,
:
)
:
Promise
<
void
>
;
$updateKernel
(
:
number
,
:
<
>
)
:
void
;
$removeKernel
(
:
number
)
:
void
;
$updateNotebookPriority
(
:
number
,
:
,
:
number
|
undefined
)
:
void
;
$createExecution
(
:
number
,
:
string
,
:
,
:
number
)
:
void
;
$updateExecution
(
:
number
,
:
<
[
]
>
)
:
void
;
$completeExecution
(
:
number
,
:
<
>
)
:
void
;
$createNotebookExecution
(
:
number
,
:
string
,
:
)
:
void
;
$beginNotebookExecution
(
:
number
,
)
:
void
;
$completeNotebookExecution
(
:
number
)
:
void
;
$addKernelDetectionTask
(
:
number
,
:
string
)
:
Promise
<
void
>
;
$removeKernelDetectionTask
(
:
number
)
:
void
;
$addKernelSourceActionProvider
(
:
number
,
:
number
,
:
string
)
:
Promise
<
void
>
;
$removeKernelSourceActionProvider
(
:
number
,
:
number
)
:
void
;
$emitNotebookKernelSourceActionsChangeEvent
(
:
number
)
:
void
;
$receiveVariable
(
:
string
,
:
)
:
void
;
$variablesUpdated
(
:
)
:
void
;
}
export
interface
MainThreadNotebookRenderersShape
extends
IDisposable
{
$postMessage
(
:
string
|
undefined
,
:
string
,
:
unknown
)
:
Promise
<
boolean
>
;
}
export
interface
MainThreadInteractiveShape
extends
IDisposable
{
}
export
interface
MainThreadSpeechShape
extends
IDisposable
{
$registerProvider
(
:
number
,
:
string
,
:
)
:
void
;
$unregisterProvider
(
:
number
)
:
void
;
$emitSpeechToTextEvent
(
:
number
,
:
)
:
void
;
$emitTextToSpeechEvent
(
:
number
,
:
)
:
void
;
$emitKeywordRecognitionEvent
(
:
number
,
:
)
:
void
;
}
export
interface
ExtHostSpeechShape
{
$createSpeechToTextSession
(
:
number
,
:
number
,
?
:
string
)
:
Promise
<
void
>
;
$cancelSpeechToTextSession
(
:
number
)
:
Promise
<
void
>
;
$createTextToSpeechSession
(
:
number
,
:
number
,
?
:
string
)
:
Promise
<
void
>
;
$synthesizeSpeech
(
:
number
,
:
string
)
:
Promise
<
void
>
;
$cancelTextToSpeechSession
(
:
number
)
:
Promise
<
void
>
;
$createKeywordRecognitionSession
(
:
number
,
:
number
)
:
Promise
<
void
>
;
$cancelKeywordRecognitionSession
(
:
number
)
:
Promise
<
void
>
;
}
export
interface
BrowserTabDto
{
:
string
;
:
string
;
:
string
;
:
string
|
undefined
;
}
export
interface
MainThreadBrowsersShape
extends
IDisposable
{
$openBrowserTab
(
:
string
,
?
:
,
?
:
)
:
Promise
<
>
;
$closeBrowserTab
(
:
string
)
:
Promise
<
void
>
;
$startCDPSession
(
:
string
,
:
string
)
:
Promise
<
void
>
;
$closeCDPSession
(
:
string
)
:
Promise
<
void
>
;
$sendCDPMessage
(
:
string
,
:
)
:
Promise
<
void
>
;
}
export
interface
ExtHostBrowsersShape
{
$onDidOpenBrowserTab
(
:
)
:
void
;
$onDidCloseBrowserTab
(
:
string
)
:
void
;
$onDidChangeActiveBrowserTab
(
:
string
|
undefined
)
:
void
;
$onDidChangeBrowserTabState
(
:
)
:
void
;
$onCDPSessionMessage
(
:
string
,
:
|
)
:
void
;
$onCDPSessionClosed
(
:
string
)
:
void
;
}
export
interface
MainThreadLanguageModelsShape
extends
IDisposable
{
$registerLanguageModelProvider
(
:
string
)
:
void
;
$onLMProviderChange
(
:
string
)
:
void
;
$unregisterProvider
(
:
string
)
:
void
;
$tryStartChatRequest
(
:
,
:
string
,
:
number
,
:
<
[
]
>
,
:
{
}
,
:
)
:
Promise
<
void
>
;
$reportResponsePart
(
:
number
,
:
<
|
[
]
>
)
:
Promise
<
void
>
;
$reportResponseDone
(
:
number
,
:
|
undefined
)
:
Promise
<
void
>
;
$selectChatModels
(
:
)
:
Promise
<
string
[
]
>
;
$countTokens
(
:
string
,
:
string
|
,
:
)
:
Promise
<
number
>
;
$cancelLanguageModelChatRequest
(
:
number
)
:
void
;
$fileIsIgnored
(
:
,
:
)
:
Promise
<
boolean
>
;
$registerFileIgnoreProvider
(
:
number
)
:
void
;
$unregisterFileIgnoreProvider
(
:
number
)
:
void
;
}
export
interface
ExtHostLanguageModelsShape
{
$provideLanguageModelChatInfo
(
:
string
,
:
,
:
)
:
Promise
<
[
]
>
;
$updateModelAccesslist
(
:
{
:
;
:
;
:
boolean
}
[
]
)
:
void
;
$onChatModelsChange
(
)
:
void
;
$startChatRequest
(
:
string
,
:
number
,
:
|
undefined
,
:
<
[
]
>
,
:
,
:
)
:
Promise
<
void
>
;
$acceptResponsePart
(
:
number
,
:
<
|
[
]
>
)
:
Promise
<
void
>
;
$acceptResponseDone
(
:
number
,
:
|
undefined
)
:
Promise
<
void
>
;
$cancelLanguageModelChatRequest
(
:
number
)
:
void
;
$provideTokenLength
(
:
string
,
:
string
|
,
:
)
:
Promise
<
number
>
;
$isFileIgnored
(
:
number
,
:
,
:
)
:
Promise
<
boolean
>
;
}
export
type
IChatContextItemDto
=
<
>
;
export
interface
ExtHostChatContextShape
{
$provideWorkspaceChatContext
(
:
number
,
:
)
:
Promise
<
[
]
>
;
$provideExplicitChatContext
(
:
number
,
:
)
:
Promise
<
[
]
>
;
$resolveExplicitChatContext
(
:
number
,
:
,
:
)
:
Promise
<
>
;
$provideResourceChatContext
(
:
number
,
:
{
:
;
:
boolean
;
?
:
string
}
,
:
)
:
Promise
<
|
undefined
>
;
$resolveResourceChatContext
(
:
number
,
:
,
:
)
:
Promise
<
>
;
$executeChatContextItemCommand
(
:
number
)
:
Promise
<
void
>
;
}
export
interface
MainThreadChatContextShape
extends
IDisposable
{
$registerChatWorkspaceContextProvider
(
:
number
,
:
string
)
:
void
;
$registerChatExplicitContextProvider
(
:
number
,
:
string
)
:
void
;
$registerChatResourceContextProvider
(
:
number
,
:
string
,
:
)
:
void
;
$unregisterChatContextProvider
(
:
number
)
:
void
;
$updateWorkspaceContextItems
(
:
number
,
:
[
]
)
:
void
;
$executeChatContextItemCommand
(
:
number
)
:
Promise
<
void
>
;
}
export
interface
IChatDebugEventCommonDto
{
readonly
?
:
string
;
readonly
?
:
;
readonly
:
number
;
readonly
?
:
string
;
}
export
interface
IChatDebugToolCallEventDto
extends
IChatDebugEventCommonDto
{
readonly
:
'toolCall'
;
readonly
:
string
;
readonly
?
:
string
;
readonly
?
:
string
;
readonly
?
:
string
;
readonly
?
:
'success'
|
'error'
;
readonly
?
:
number
;
}
export
interface
IChatDebugModelTurnEventDto
extends
IChatDebugEventCommonDto
{
readonly
:
'modelTurn'
;
readonly
?
:
string
;
readonly
?
:
string
;
readonly
?
:
number
;
readonly
?
:
number
;
readonly
?
:
number
;
readonly
?
:
number
;
readonly
?
:
number
;
readonly
?
:
number
;
}
export
interface
IChatDebugGenericEventDto
extends
IChatDebugEventCommonDto
{
readonly
:
'generic'
;
readonly
:
string
;
readonly
?
:
string
;
readonly
:
number
;
readonly
?
:
string
;
}
export
interface
IChatDebugSubagentInvocationEventDto
extends
IChatDebugEventCommonDto
{
readonly
:
'subagentInvocation'
;
readonly
:
string
;
readonly
?
:
string
;
readonly
?
:
'running'
|
'completed'
|
'failed'
;
readonly
?
:
number
;
readonly
?
:
number
;
readonly
?
:
number
;
}
export
interface
IChatDebugMessageSectionDto
{
readonly
:
string
;
readonly
:
string
;
}
export
interface
IChatDebugUserMessageEventDto
extends
IChatDebugEventCommonDto
{
readonly
:
'userMessage'
;
readonly
:
string
;
readonly
:
readonly
[
]
;
}
export
interface
IChatDebugAgentResponseEventDto
extends
IChatDebugEventCommonDto
{
readonly
:
'agentResponse'
;
readonly
:
string
;
readonly
:
readonly
[
]
;
}
export
type
IChatDebugEventDto
=
|
|
|
|
|
;
export
interface
IChatDebugEventTextContentDto
{
readonly
:
'text'
;
readonly
:
string
;
}
export
interface
IChatDebugEventMessageContentDto
{
readonly
:
'message'
;
readonly
:
'user'
|
'agent'
;
readonly
:
string
;
readonly
:
readonly
[
]
;
}
export
interface
IChatDebugEventToolCallContentDto
{
readonly
:
'toolCall'
;
readonly
:
string
;
readonly
?
:
'success'
|
'error'
;
readonly
?
:
number
;
readonly
?
:
string
;
readonly
?
:
string
;
}
export
interface
IChatDebugEventModelTurnContentDto
{
readonly
:
'modelTurn'
;
readonly
:
string
;
readonly
?
:
string
;
readonly
?
:
string
;
readonly
?
:
number
;
readonly
?
:
number
;
readonly
?
:
string
;
readonly
?
:
number
;
readonly
?
:
number
;
readonly
?
:
number
;
readonly
?
:
number
;
readonly
?
:
number
;
readonly
?
:
number
;
readonly
?
:
string
;
readonly
?
:
string
;
readonly
?
:
readonly
[
]
;
}
export
interface
IChatDebugEventHookContentDto
{
readonly
:
'hook'
;
readonly
:
string
;
readonly
?
:
string
;
readonly
?
:
'success'
|
'error'
|
'nonBlockingError'
;
readonly
?
:
number
;
readonly
?
:
string
;
readonly
?
:
string
;
readonly
?
:
number
;
readonly
?
:
string
;
}
export
type
IChatDebugResolvedEventContentDto
=
|
|
|
|
;
export
interface
ExtHostChatDebugShape
{
$provideChatDebugLog
(
:
number
,
:
,
:
)
:
Promise
<
[
]
|
undefined
>
;
$resolveChatDebugLogEvent
(
:
number
,
:
string
,
:
)
:
Promise
<
|
undefined
>
;
$exportChatDebugLog
(
:
number
,
:
,
:
[
]
,
:
string
|
undefined
,
:
)
:
Promise
<
|
undefined
>
;
$importChatDebugLog
(
:
number
,
:
,
:
)
:
Promise
<
{
:
;
?
:
string
}
|
undefined
>
;
$getAvailableDebugSessionResources
(
:
number
,
:
)
:
Promise
<
{
:
;
?
:
string
}
[
]
>
;
$onCoreDebugEvent
(
:
)
:
void
;
}
export
interface
MainThreadChatDebugShape
extends
IDisposable
{
$registerChatDebugLogProvider
(
:
number
)
:
void
;
$unregisterChatDebugLogProvider
(
:
number
)
:
void
;
$acceptChatDebugEvent
(
:
number
,
:
)
:
void
;
$subscribeToCoreDebugEvents
(
)
:
void
;
$unsubscribeFromCoreDebugEvents
(
)
:
void
;
}
export
interface
MainThreadEmbeddingsShape
extends
IDisposable
{
$registerEmbeddingProvider
(
:
number
,
:
string
)
:
void
;
$unregisterEmbeddingProvider
(
:
number
)
:
void
;
$computeEmbeddings
(
:
string
,
:
string
[
]
,
:
)
:
Promise
<
(
{
:
number
[
]
}
[
]
)
>
;
}
export
interface
ExtHostEmbeddingsShape
{
$provideEmbeddings
(
:
number
,
:
string
[
]
,
:
)
:
Promise
<
{
:
number
[
]
}
[
]
>
;
$acceptEmbeddingModels
(
:
string
[
]
)
:
void
;
}
export
interface
IExtensionChatAgentMetadata
extends
Dto<IChatAgentMetadata>
{
?
:
boolean
;
}
export
interface
IDynamicChatAgentProps
{
:
string
;
:
string
;
?
:
string
;
?
:
string
;
}
export
interface
IChatAgentProgressShape
{
$handleProgressChunk
(
:
string
,
:
(
|
[
,
number
]
)
[
]
)
:
Promise
<
void
>
;
$handleAnchorResolve
(
:
string
,
:
string
,
:
<
>
)
:
void
;
}
export
interface
MainThreadChatAgentsShape2
extends
IChatAgentProgressShape
,
{
$registerAgent
(
:
number
,
:
,
:
string
,
:
,
:
|
undefined
)
:
void
;
$registerChatParticipantDetectionProvider
(
:
number
)
:
void
;
$unregisterChatParticipantDetectionProvider
(
:
number
)
:
void
;
$registerPromptFileProvider
(
:
number
,
:
string
,
:
)
:
void
;
$unregisterPromptFileProvider
(
:
number
)
:
void
;
$onDidChangePromptFiles
(
:
number
)
:
void
;
$registerChatSessionCustomizationProvider
(
:
number
,
:
string
,
:
,
:
)
:
void
;
$unregisterChatSessionCustomizationProvider
(
:
number
)
:
void
;
$onDidChangeCustomizations
(
:
number
)
:
void
;
$registerAgentCompletionsProvider
(
:
number
,
:
string
,
:
string
[
]
)
:
void
;
$unregisterAgentCompletionsProvider
(
:
number
,
:
string
)
:
void
;
$updateAgent
(
:
number
,
:
)
:
void
;
$unregisterAgent
(
:
number
)
:
void
;
$transferActiveChatSession
(
:
)
:
Promise
<
void
>
;
$provideCustomAgents
(
:
)
:
Promise
<
[
]
>
;
$provideInstructions
(
:
)
:
Promise
<
[
]
>
;
$provideSkills
(
:
)
:
Promise
<
[
]
>
;
$provideSlashCommands
(
:
)
:
Promise
<
[
]
>
;
$provideHooks
(
:
)
:
Promise
<
[
]
>
;
$providePlugins
(
:
)
:
Promise
<
[
]
>
;
}
export
interface
ICodeMapperTextEdit
{
:
URI
;
:
.
[
]
;
}
export
interface
ICodeMapperNotebookEditDto
{
:
URI
;
:
[
]
;
}
export
type
ICodeMapperProgressDto
=
<
>
|
<
>
;
export
interface
MainThreadCodeMapperShape
extends
IDisposable
{
$registerCodeMapperProvider
(
:
number
,
:
string
)
:
void
;
$unregisterCodeMapperProvider
(
:
number
)
:
void
;
$handleProgress
(
:
string
,
:
)
:
Promise
<
void
>
;
}
export
interface
IChatAgentCompletionItem
{
:
string
;
?
:
string
;
?
:
string
;
?
:
string
;
:
string
|
.
;
:
;
?
:
string
;
?
:
string
|
;
?
:
;
}
export
type
IChatContentProgressDto
=
|
<
<
,
|
>>
|
|
;
export
type
IChatAgentHistoryEntryDto
=
{
:
;
:
<
>
;
:
;
}
;
export
interface
IChatSessionContextDto
{
readonly
:
;
readonly
:
boolean
;
readonly
?
:
<
{
:
string
;
:
string
}
>
;
}
export
interface
IChatAgentInvokeResult
extends
IChatAgentResult
{
/** Error callstack for telemetry only. Stripped at the RPC boundary — never persisted or sent to the model. */
?
:
string
;
/** Error name (e.g. 'ChatQuotaExceeded', 'TypeError') for telemetry only. */
?
:
string
;
}
export
interface
ExtHostChatAgentsShape2
{
$invokeAgent
(
:
number
,
:
<
>
,
:
{
:
[
]
;
?
:
}
,
:
)
:
Promise
<
|
undefined
>
;
$provideFollowups
(
:
<
>
,
:
number
,
:
,
:
{
:
[
]
}
,
:
)
:
Promise
<
[
]
>
;
$acceptFeedback
(
:
number
,
:
,
:
)
:
void
;
$handleQuestionCarouselAnswer
(
:
string
,
:
string
,
:
<
string
,
unknown
>
|
undefined
)
:
void
;
$acceptAction
(
:
number
,
:
,
:
)
:
void
;
$invokeCompletionProvider
(
:
number
,
:
string
,
:
)
:
Promise
<
[
]
>
;
$provideChatTitle
(
:
number
,
:
[
]
,
:
)
:
Promise
<
string
|
undefined
>
;
$provideChatSummary
(
:
number
,
:
[
]
,
:
)
:
Promise
<
string
|
undefined
>
;
$releaseSession
(
:
)
:
void
;
$detectChatParticipant
(
:
number
,
:
<
>
,
:
{
:
[
]
}
,
:
{
:
[
]
;
:
}
,
:
)
:
Promise
<
|
null
|
undefined
>
;
$providePromptFiles
(
:
number
,
:
,
:
,
:
)
:
Promise
<
<
>
[
]
|
undefined
>
;
$provideChatSessionCustomizations
(
:
number
,
:
,
:
)
:
Promise
<
[
]
|
undefined
>
;
$provideSourceFolders
(
:
number
,
:
,
:
string
,
:
)
:
Promise
<
[
]
|
undefined
>
;
$setRequestTools
(
:
string
,
:
)
:
void
;
$setYieldRequested
(
:
string
,
:
boolean
)
:
void
;
$acceptActiveChatSession
(
:
|
undefined
)
:
void
;
$onDidChangeCustomAgents
(
)
:
void
;
$onDidChangeInstructions
(
)
:
void
;
$onDidChangeSkills
(
)
:
void
;
$onDidChangeSlashCommands
(
)
:
void
;
$onDidChangeHooks
(
)
:
void
;
$onDidChangePlugins
(
)
:
void
;
}
export
type
IChatResourceSourceDto
=
'local'
|
'user'
|
'extension'
|
'plugin'
|
'builtin'
;
export
interface
IChatResourceDto
{
readonly
:
;
readonly
:
string
;
readonly
?
:
string
;
readonly
:
;
readonly
?
:
string
;
readonly
?
:
;
readonly
?
:
readonly
string
[
]
;
}
export
interface
ICustomAgentDto
extends
IChatResourceDto
{
readonly
?
:
string
;
readonly
?
:
readonly
string
[
]
;
readonly
?
:
readonly
string
[
]
;
readonly
:
boolean
;
readonly
:
boolean
;
readonly
:
boolean
;
}
export
interface
IInstructionDto
extends
IChatResourceDto
{
readonly
?
:
string
;
}
export
interface
ISkillDto
extends
IChatResourceDto
{
readonly
:
boolean
;
readonly
:
boolean
;
}
export
interface
ISlashCommandDto
extends
IChatResourceDto
{
readonly
?
:
string
;
readonly
:
boolean
;
}
export
interface
IHookDto
{
readonly
:
;
readonly
?
:
readonly
string
[
]
;
readonly
:
;
readonly
?
:
string
;
readonly
?
:
;
}
export
interface
IPluginDto
{
readonly
:
;
}
export
interface
IChatSessionCustomizationProviderMetadataDto
{
readonly
:
string
;
readonly
?
:
string
;
readonly
?
:
readonly
string
[
]
;
}
export
interface
IChatSessionCustomizationItemDto
{
readonly
:
;
readonly
:
string
;
readonly
:
string
;
readonly
:
;
readonly
?
:
string
;
readonly
?
:
string
;
readonly
?
:
string
;
readonly
?
:
string
;
readonly
?
:
;
readonly
?
:
string
;
readonly
?
:
string
;
readonly
?
:
boolean
;
}
export
interface
IChatSessionCustomizationSourceFolderDto
{
readonly
:
;
readonly
:
string
;
readonly
:
;
}
export
interface
IChatParticipantMetadata
{
:
string
;
?
:
string
;
:
{
:
string
;
:
string
;
:
string
[
]
}
[
]
;
}
export
interface
IChatParticipantDetectionResult
{
:
string
;
?
:
string
;
}
export
interface
IToolDataDto
{
:
string
;
?
:
string
;
?
:
readonly
string
[
]
;
:
string
|
undefined
;
?
:
readonly
string
[
]
;
:
string
;
?
:
string
;
:
string
;
:
<
>
;
?
:
;
}
export
interface
ILanguageModelChatSelectorDto
{
?
:
string
;
?
:
string
;
?
:
string
;
?
:
string
;
}
export
interface
IToolDefinitionDto
extends
IToolDataDto
{
?
:
;
?
:
[
]
;
?
:
string
;
}
export
interface
MainThreadLanguageModelToolsShape
extends
IDisposable
{
$getTools
(
)
:
Promise
<
<
>
[
]
>
;
$acceptToolProgress
(
:
string
,
:
)
:
void
;
$invokeTool
(
:
<
>
,
?
:
)
:
Promise
<
<
>
|
<
<
>>>
;
$countTokensForInvocation
(
:
string
,
:
string
,
:
)
:
Promise
<
number
>
;
$registerTool
(
:
string
,
:
boolean
)
:
void
;
$registerToolWithDefinition
(
:
,
:
,
:
boolean
)
:
void
;
$unregisterTool
(
:
string
)
:
void
;
}
export
type
IChatRequestVariableValueDto
=
<
>
;
export
interface
ExtHostLanguageModelToolsShape
{
$onDidChangeTools
(
:
[
]
)
:
void
;
$invokeTool
(
:
<
>
,
:
)
:
Promise
<
<
>
|
<
<
>>>
;
$countTokensForInvocation
(
:
string
,
:
string
,
:
)
:
Promise
<
number
>
;
$handleToolStream
(
:
string
,
:
,
:
)
:
Promise
<
|
undefined
>
;
$prepareToolInvocation
(
:
string
,
:
,
:
)
:
Promise
<
|
undefined
>
;
}
export
interface
MainThreadUrlsShape
extends
IDisposable
{
$registerUriHandler
(
:
number
,
:
,
:
string
)
:
Promise
<
void
>
;
$unregisterUriHandler
(
:
number
)
:
Promise
<
void
>
;
$createAppUri
(
:
)
:
Promise
<
>
;
}
export
interface
IChatResponseProgressFileTreeData
{
:
string
;
:
URI
;
?
:
[
]
;
}
export
type
IDocumentContextDto
=
{
:
;
:
number
;
:
[
]
;
}
;
export
type
IChatProgressDto
=
|
<
<
,
|
>>
|
|
|
|
|
|
|
;
export
interface
ExtHostUrlsShape
{
$handleExternalUri
(
:
number
,
:
)
:
Promise
<
void
>
;
}
export
interface
MainThreadUriOpenersShape
extends
IDisposable
{
$registerUriOpener
(
:
string
,
:
readonly
string
[
]
,
:
,
:
string
)
:
Promise
<
void
>
;
$unregisterUriOpener
(
:
string
)
:
Promise
<
void
>
;
}
export
interface
ExtHostUriOpenersShape
{
$canOpenUri
(
:
string
,
:
,
:
)
:
Promise
<
.
>
;
$openUri
(
:
string
,
:
{
:
;
:
}
,
:
)
:
Promise
<
void
>
;
}
export
interface
MainThreadChatOutputRendererShape
extends
IDisposable
{
$registerChatOutputRenderer
(
:
string
,
:
,
:
)
:
void
;
$unregisterChatOutputRenderer
(
:
string
)
:
void
;
}
export
interface
IChatOutputRenderContextDto
{
readonly
?
:
{
readonly
:
string
;
}
;
}
export
interface
ExtHostChatOutputRendererShape
{
$renderChatOutput
(
:
string
,
:
string
,
:
,
:
string
,
:
,
:
)
:
Promise
<
void
>
;
}
export
interface
MainThreadProfileContentHandlersShape
{
$registerProfileContentHandler
(
:
string
,
:
string
,
:
string
|
undefined
,
:
string
)
:
Promise
<
void
>
;
$unregisterProfileContentHandler
(
:
string
)
:
Promise
<
void
>
;
}
export
interface
ExtHostProfileContentHandlersShape
{
$saveProfile
(
:
string
,
:
string
,
:
string
,
:
)
:
Promise
<
<
>
|
null
>
;
$readProfile
(
:
string
,
:
string
|
,
:
)
:
Promise
<
string
|
null
>
;
}
export
interface
ITextSearchComplete
{
?
:
boolean
;
?
:
|
[
]
;
}
export
interface
ResourceTrustRequestOptionsDto
{
readonly
:
;
readonly
?
:
string
;
}
export
interface
MainThreadWorkspaceShape
extends
IDisposable
{
$startFileSearch
(
:
|
null
,
:
,
:
)
:
Promise
<
[
]
|
null
>
;
$startTextSearch
(
:
.
,
:
|
null
,
:
,
:
number
,
:
)
:
Promise
<
|
null
>
;
$checkExists
(
:
readonly
[
]
,
:
string
[
]
,
:
)
:
Promise
<
boolean
>
;
$save
(
:
,
:
{
:
boolean
}
)
:
Promise
<
|
undefined
>
;
$saveAll
(
?
:
boolean
)
:
Promise
<
boolean
>
;
$updateWorkspaceFolders
(
:
string
,
:
number
,
:
number
,
:
{
:
;
?
:
string
}
[
]
)
:
Promise
<
void
>
;
$resolveProxy
(
:
string
)
:
Promise
<
string
|
undefined
>
;
$lookupAuthorization
(
:
)
:
Promise
<
|
undefined
>
;
$lookupKerberosAuthorization
(
:
string
)
:
Promise
<
string
|
undefined
>
;
$loadCertificates
(
)
:
Promise
<
string
[
]
>
;
$requestResourceTrust
(
:
)
:
Promise
<
boolean
|
undefined
>
;
$requestWorkspaceTrust
(
?
:
)
:
Promise
<
boolean
|
undefined
>
;
$isResourceTrusted
(
:
)
:
Promise
<
boolean
>
;
$registerEditSessionIdentityProvider
(
:
number
,
:
string
)
:
void
;
$unregisterEditSessionIdentityProvider
(
:
number
)
:
void
;
$registerCanonicalUriProvider
(
:
number
,
:
string
)
:
void
;
$unregisterCanonicalUriProvider
(
:
number
)
:
void
;
$resolveDecoding
(
:
|
undefined
,
?
:
{
?
:
string
}
)
:
Promise
<
{
:
string
;
:
boolean
;
:
string
[
]
}
>
;
$validateDetectedEncoding
(
:
|
undefined
,
:
string
,
?
:
{
?
:
string
}
)
:
Promise
<
string
>
;
$resolveEncoding
(
:
|
undefined
,
?
:
{
?
:
string
}
)
:
Promise
<
{
:
string
;
:
boolean
}
>
;
}
export
interface
IFileChangeDto
{
:
;
:
.
;
}
export
interface
MainThreadFileSystemShape
extends
IDisposable
{
$registerFileSystemProvider
(
:
number
,
:
string
,
:
.
,
?
:
)
:
Promise
<
void
>
;
$unregisterProvider
(
:
number
)
:
void
;
$onFileSystemChange
(
:
number
,
:
[
]
)
:
void
;
$stat
(
:
)
:
Promise
<
.
>
;
$readdir
(
:
)
:
Promise
<
[
string
,
.
]
[
]
>
;
$readFile
(
:
)
:
Promise
<
>
;
$writeFile
(
:
,
:
)
:
Promise
<
void
>
;
$rename
(
:
,
:
,
:
.
)
:
Promise
<
void
>
;
$copy
(
:
,
:
,
:
.
)
:
Promise
<
void
>
;
$mkdir
(
:
)
:
Promise
<
void
>
;
delete
(
:
,
:
.
)
:
Promise
<
void
>
;
$ensureActivation
(
:
string
)
:
Promise
<
void
>
;
}
export
interface
MainThreadFileSystemEventServiceShape
extends
IDisposable
{
$watch
(
:
string
,
:
number
,
:
,
:
.
,
:
boolean
)
:
void
;
$unwatch
(
:
number
)
:
void
;
}
export
interface
MainThreadLabelServiceShape
extends
IDisposable
{
$registerResourceLabelFormatter
(
:
number
,
:
)
:
void
;
$unregisterResourceLabelFormatter
(
:
number
)
:
void
;
}
export
interface
MainThreadSearchShape
extends
IDisposable
{
$registerFileSearchProvider
(
:
number
,
:
string
)
:
void
;
$registerAITextSearchProvider
(
:
number
,
:
string
)
:
void
;
$registerTextSearchProvider
(
:
number
,
:
string
)
:
void
;
$unregisterProvider
(
:
number
)
:
void
;
$handleFileMatch
(
:
number
,
:
number
,
:
[
]
)
:
void
;
$handleTextMatch
(
:
number
,
:
number
,
:
.
[
]
)
:
void
;
$handleKeywordResult
(
:
number
,
:
number
,
:
)
:
void
;
$handleTelemetry
(
:
string
,
:
any
)
:
void
;
}
export
interface
MainThreadShareShape
extends
IDisposable
{
$registerShareProvider
(
:
number
,
:
[
]
,
:
string
,
:
string
,
:
number
)
:
void
;
$unregisterShareProvider
(
:
number
)
:
void
;
}
export
interface
MainThreadTaskShape
extends
IDisposable
{
$createTaskId
(
:
.
)
:
Promise
<
string
>
;
$registerTaskProvider
(
:
number
,
:
string
)
:
Promise
<
void
>
;
$unregisterTaskProvider
(
:
number
)
:
Promise
<
void
>
;
$fetchTasks
(
?
:
.
)
:
Promise
<
.
[
]
>
;
$getTaskExecution
(
:
.
|
.
)
:
Promise
<
.
>
;
$executeTask
(
:
.
|
.
)
:
Promise
<
.
>
;
$terminateTask
(
:
string
)
:
Promise
<
void
>
;
$registerTaskSystem
(
:
string
,
:
.
)
:
void
;
$customExecutionComplete
(
:
string
,
?
:
number
)
:
Promise
<
void
>
;
$registerSupportedExecutions
(
?
:
boolean
,
?
:
boolean
,
?
:
boolean
)
:
Promise
<
void
>
;
}
export
interface
MainThreadExtensionServiceShape
extends
IDisposable
{
$getExtension
(
:
string
)
:
Promise
<
<
>
|
undefined
>
;
$activateExtension
(
:
,
:
)
:
Promise
<
void
>
;
$onWillActivateExtension
(
:
)
:
Promise
<
void
>
;
$onDidActivateExtension
(
:
,
:
number
,
:
number
,
:
number
,
:
)
:
void
;
$onExtensionActivationError
(
:
,
:
,
:
|
null
)
:
Promise
<
void
>
;
$onExtensionRuntimeError
(
:
,
:
)
:
void
;
$setPerformanceMarks
(
:
.
[
]
)
:
Promise
<
void
>
;
$asBrowserUri
(
:
)
:
Promise
<
>
;
}
export
interface
SCMProviderFeatures
{
?
:
boolean
;
?
:
boolean
;
?
:
boolean
;
?
:
string
;
?
:
boolean
;
?
:
string
;
?
:
number
;
?
:
string
;
?
:
.
;
?
:
|
null
;
?
:
[
]
;
?
:
string
;
}
export
interface
SCMActionButtonDto
{
:
&
{
?
:
string
}
;
?
:
[
]
[
]
;
:
boolean
;
}
export
interface
SCMGroupFeatures
{
?
:
boolean
;
?
:
string
;
}
export
type
SCMRawResource
=
[
number
/*handle*/
,
/*resourceUri*/
,
[
|
|
undefined
,
|
|
undefined
]
/*icons: light, dark*/
,
string
/*tooltip*/
,
boolean
/*strike through*/
,
boolean
/*faded*/
,
string
/*context value*/
,
|
undefined
/*command*/
,
|
undefined
/* multiFileDiffEditorOriginalUri */
,
|
undefined
/* multiFileDiffEditorModifiedUri */
,
]
;
export
type
SCMRawResourceSplice
=
[
number
/* start */
,
number
/* delete count */
,
[
]
]
;
export
type
SCMRawResourceSplices
=
[
number
,
/*handle*/
[
]
]
;
export
interface
SCMHistoryItemRefDto
{
readonly
:
string
;
readonly
:
string
;
readonly
?
:
string
;
readonly
?
:
string
;
readonly
?
:
string
;
readonly
?
:
;
}
export
interface
SCMHistoryItemRefsChangeEventDto
{
readonly
:
readonly
[
]
;
readonly
:
readonly
[
]
;
readonly
:
readonly
[
]
;
readonly
:
boolean
;
}
export
interface
SCMHistoryItemDto
{
readonly
:
string
;
readonly
:
string
[
]
;
readonly
:
string
;
readonly
:
string
;
readonly
?
:
string
;
readonly
?
:
string
;
readonly
?
:
;
readonly
?
:
string
;
readonly
?
:
number
;
readonly
?
:
{
readonly
:
number
;
readonly
:
number
;
readonly
:
number
;
}
;
readonly
?
:
[
]
;
readonly
?
:
|
Array
<
>
|
undefined
;
}
export
interface
SCMHistoryItemChangeDto
{
readonly
:
;
readonly
:
|
undefined
;
readonly
:
|
undefined
;
}
export
interface
SCMArtifactGroupDto
{
readonly
:
string
;
readonly
:
string
;
readonly
?
:
|
{
:
;
:
}
|
;
readonly
?
:
boolean
;
}
export
interface
SCMArtifactDto
{
readonly
:
string
;
readonly
:
string
;
readonly
?
:
string
;
readonly
?
:
|
{
:
;
:
}
|
;
readonly
?
:
number
;
readonly
?
:
;
}
export
interface
MainThreadSCMShape
extends
IDisposable
{
$registerSourceControl
(
:
number
,
:
number
|
undefined
,
:
string
,
:
string
,
:
|
undefined
,
:
|
undefined
,
:
boolean
|
undefined
,
:
)
:
Promise
<
void
>
;
$updateSourceControl
(
:
number
,
:
)
:
Promise
<
void
>
;
$unregisterSourceControl
(
:
number
)
:
Promise
<
void
>
;
$registerGroups
(
:
number
,
:
[
number
/*handle*/
,
string
/*id*/
,
string
/*label*/
,
,
/* multiDiffEditorEnableViewChanges */
boolean
]
[
]
,
:
[
]
)
:
Promise
<
void
>
;
$updateGroup
(
:
number
,
:
number
,
:
)
:
Promise
<
void
>
;
$updateGroupLabel
(
:
number
,
:
number
,
:
string
)
:
Promise
<
void
>
;
$unregisterGroup
(
:
number
,
:
number
)
:
Promise
<
void
>
;
$spliceResourceStates
(
:
number
,
:
[
]
)
:
Promise
<
void
>
;
$setInputBoxValue
(
:
number
,
:
string
)
:
Promise
<
void
>
;
$setInputBoxPlaceholder
(
:
number
,
:
string
)
:
Promise
<
void
>
;
$setInputBoxEnablement
(
:
number
,
:
boolean
)
:
Promise
<
void
>
;
$setInputBoxVisibility
(
:
number
,
:
boolean
)
:
Promise
<
void
>
;
$showValidationMessage
(
:
number
,
:
string
|
,
:
)
:
Promise
<
void
>
;
$setValidationProviderIsEnabled
(
:
number
,
:
boolean
)
:
Promise
<
void
>
;
$onDidChangeHistoryProviderCurrentHistoryItemRefs
(
:
number
,
?
:
,
?
:
,
?
:
)
:
Promise
<
void
>
;
$onDidChangeHistoryProviderHistoryItemRefs
(
:
number
,
:
)
:
Promise
<
void
>
;
$onDidChangeArtifacts
(
:
number
,
:
string
[
]
)
:
Promise
<
void
>
;
}
export
interface
MainThreadQuickDiffShape
extends
IDisposable
{
$registerQuickDiffProvider
(
:
number
,
:
[
]
,
:
string
,
:
string
,
:
|
undefined
)
:
Promise
<
void
>
;
$unregisterQuickDiffProvider
(
:
number
)
:
Promise
<
void
>
;
$createSourceControlDiffInformation
(
:
number
,
:
)
:
Promise
<
void
>
;
$disposeSourceControlDiffInformation
(
:
number
)
:
Promise
<
void
>
;
}
export
interface
IAgentEditorCommentDto
{
:
string
;
:
;
:
string
;
?
:
string
;
}
export
interface
MainThreadAgentEditorCommentsShape
extends
IDisposable
{
$createAgentEditorComments
(
:
number
,
:
)
:
Promise
<
void
>
;
$addComment
(
:
number
,
:
,
:
string
)
:
Promise
<
void
>
;
$deleteComment
(
:
number
,
:
string
)
:
Promise
<
void
>
;
$disposeAgentEditorComments
(
:
number
)
:
Promise
<
void
>
;
}
export
interface
ExtHostAgentEditorCommentsShape
{
$acceptAgentEditorComments
(
:
number
,
:
[
]
,
:
boolean
)
:
void
;
$revealAgentEditorComment
(
:
number
,
:
string
)
:
void
;
}
export
interface
IDocumentDiffLineChangeDto
{
:
;
:
;
:
{
:
;
:
}
[
]
|
undefined
;
}
export
interface
IDocumentDiffMoveDto
{
:
;
:
;
:
[
]
;
}
export
interface
IDocumentDiffResultDto
{
:
boolean
;
:
boolean
;
:
[
]
;
:
[
]
;
}
export
interface
MainThreadDocumentDiffShape
extends
IDisposable
{
$computeDocumentDiff
(
:
,
:
,
:
boolean
,
:
number
,
:
boolean
)
:
Promise
<
|
null
>
;
}
export
type
DebugSessionUUID
=
string
;
export
interface
IDebugConfiguration
{
:
string
;
:
string
;
:
string
;
[
:
string
]
:
any
;
}
export
interface
IStartDebuggingOptions
{
?
:
;
?
:
boolean
;
?
:
;
?
:
boolean
;
?
:
boolean
;
?
:
boolean
;
?
:
boolean
;
?
:
boolean
;
?
:
boolean
;
?
:
;
}
export
interface
MainThreadDebugServiceShape
extends
IDisposable
{
$registerDebugTypes
(
:
string
[
]
)
:
void
;
$sessionCached
(
:
string
)
:
void
;
$acceptDAMessage
(
:
number
,
:
.
)
:
void
;
$acceptDAError
(
:
number
,
:
string
,
:
string
,
:
string
|
undefined
)
:
void
;
$acceptDAExit
(
:
number
,
:
number
|
undefined
,
:
string
|
undefined
)
:
void
;
$registerDebugConfigurationProvider
(
:
string
,
:
,
:
boolean
,
:
boolean
,
:
boolean
,
:
number
)
:
Promise
<
void
>
;
$registerDebugAdapterDescriptorFactory
(
:
string
,
:
number
)
:
Promise
<
void
>
;
$unregisterDebugConfigurationProvider
(
:
number
)
:
void
;
$unregisterDebugAdapterDescriptorFactory
(
:
number
)
:
void
;
$startDebugging
(
:
|
undefined
,
:
string
|
,
:
)
:
Promise
<
boolean
>
;
$stopDebugging
(
:
|
undefined
)
:
Promise
<
void
>
;
$setDebugSessionName
(
:
,
:
string
)
:
void
;
$customDebugAdapterRequest
(
:
,
:
string
,
:
any
)
:
Promise
<
any
>
;
$getDebugProtocolBreakpoint
(
:
,
:
string
)
:
Promise
<
.
|
undefined
>
;
$appendDebugConsole
(
:
string
)
:
void
;
$registerBreakpoints
(
:
Array
<
|
|
>
)
:
Promise
<
void
>
;
$unregisterBreakpoints
(
:
string
[
]
,
:
string
[
]
,
:
string
[
]
)
:
Promise
<
void
>
;
$registerDebugVisualizer
(
:
string
,
:
string
)
:
void
;
$unregisterDebugVisualizer
(
:
string
,
:
string
)
:
void
;
$registerDebugVisualizerTree
(
:
string
,
:
boolean
)
:
void
;
$unregisterDebugVisualizerTree
(
:
string
)
:
void
;
}
export
interface
IOpenUriOptions
{
readonly
?
:
boolean
;
readonly
?
:
boolean
|
string
;
}
export
interface
MainThreadWindowShape
extends
IDisposable
{
$getInitialState
(
)
:
Promise
<
{
:
boolean
;
:
boolean
}
>
;
$openUri
(
:
,
:
string
|
undefined
,
:
)
:
Promise
<
boolean
>
;
$asExternalUri
(
:
,
:
)
:
Promise
<
>
;
}
export
enum
{
=
0
,
=
1
,
=
2
,
=
3
}
export
interface
PortAttributesSelector
{
?
:
[
number
,
number
]
|
number
;
?
:
;
}
export
interface
MainThreadTunnelServiceShape
extends
IDisposable
{
$openTunnel
(
:
,
:
string
|
undefined
)
:
Promise
<
|
undefined
>
;
$closeTunnel
(
:
{
:
string
;
:
number
}
)
:
Promise
<
void
>
;
$getTunnels
(
)
:
Promise
<
[
]
>
;
$setTunnelProvider
(
:
|
undefined
,
:
boolean
)
:
Promise
<
void
>
;
$hasTunnelProvider
(
)
:
Promise
<
boolean
>
;
$setRemoteTunnelService
(
:
number
)
:
Promise
<
void
>
;
$setCandidateFilter
(
)
:
Promise
<
void
>
;
$onFoundNewCandidates
(
:
[
]
)
:
Promise
<
void
>
;
$setCandidatePortSource
(
:
)
:
Promise
<
void
>
;
$registerPortsAttributesProvider
(
:
,
:
number
)
:
Promise
<
void
>
;
$unregisterPortsAttributesProvider
(
:
number
)
:
Promise
<
void
>
;
}
export
interface
MainThreadTimelineShape
extends
IDisposable
{
$registerTimelineProvider
(
:
)
:
void
;
$unregisterTimelineProvider
(
:
string
)
:
void
;
$emitTimelineChangeEvent
(
:
|
undefined
)
:
void
;
}
export
interface
HoverWithId
extends
languages
.
{
/**
* Id of the hover
*/
:
number
;
}
// -- extension host
export
interface
ICommandMetadataDto
{
/**
* NOTE: Please use an ILocalizedString. string is in the type for backcompat for now.
* A short summary of what the command does. This will be used in:
* - API commands
* - when showing keybindings that have no other UX
* - when searching for commands in the Command Palette
*/
readonly
:
|
string
;
readonly
?
:
<
{
readonly
:
string
;
readonly
?
:
boolean
;
readonly
?
:
string
;
}
>
;
readonly
?
:
string
;
}
export
interface
ICodeMapperRequestDto
extends
Dto<ICodeMapperRequest>
{
:
string
;
}
export
interface
ExtHostCodeMapperShape
{
$mapCode
(
:
number
,
:
,
:
)
:
Promise
<
|
null
|
undefined
>
;
}
export
interface
ExtHostCommandsShape
{
$executeContributedCommand
(
:
string
,
...
:
unknown
[
]
)
:
Promise
<
unknown
>
;
$getContributedCommandMetadata
(
)
:
Promise
<
{
[
:
string
]
:
string
|
}
>
;
}
export
interface
ExtHostConfigurationShape
{
$initializeConfiguration
(
:
)
:
void
;
$acceptConfigurationChanged
(
:
,
:
)
:
void
;
}
export
interface
ExtHostDiagnosticsShape
{
$acceptMarkersChange
(
:
[
,
[
]
]
[
]
)
:
void
;
}
export
interface
ExtHostDocumentContentProvidersShape
{
$provideTextDocumentContent
(
:
number
,
:
)
:
Promise
<
string
|
null
|
undefined
>
;
}
export
interface
IModelAddedData
{
:
;
:
number
;
:
string
[
]
;
EOL
:
string
;
:
string
;
:
boolean
;
:
string
;
}
export
interface
ExtHostDocumentsShape
{
$acceptModelLanguageChanged
(
:
,
:
string
)
:
void
;
$acceptModelSaved
(
:
)
:
void
;
$acceptDirtyStateChanged
(
:
,
:
boolean
)
:
void
;
$acceptEncodingChanged
(
:
,
:
string
)
:
void
;
$acceptModelChanged
(
:
,
:
,
:
boolean
)
:
void
;
}
export
interface
ExtHostDocumentSaveParticipantShape
{
$participateInSave
(
:
,
:
)
:
Promise
<
boolean
[
]
>
;
}
export
interface
ITextEditorAddData
{
:
string
;
:
;
:
;
:
[
]
;
:
[
]
;
:
|
undefined
;
}
export
interface
ITextEditorPositionData
{
[
:
string
]
:
;
}
export
type
ITextEditorChange
=
[
:
number
,
:
number
,
:
number
,
:
number
]
;
export
interface
ITextEditorDiffInformation
{
readonly
:
number
;
readonly
:
|
undefined
;
readonly
:
;
readonly
:
readonly
[
]
;
}
export
interface
IEditorPropertiesChangeData
{
:
|
null
;
:
|
null
;
:
[
]
|
null
;
}
export
interface
ISelectionChangeEvent
{
:
[
]
;
?
:
string
;
}
export
interface
ExtHostEditorsShape
{
$acceptEditorPropertiesChanged
(
:
string
,
:
)
:
void
;
$acceptEditorPositionData
(
:
)
:
void
;
$acceptEditorDiffInformation
(
:
string
,
:
[
]
|
undefined
)
:
void
;
}
export
interface
IDocumentsAndEditorsDelta
{
?
:
[
]
;
?
:
[
]
;
?
:
string
[
]
;
?
:
[
]
;
?
:
string
|
null
;
}
export
interface
ExtHostDocumentsAndEditorsShape
{
$acceptDocumentsAndEditorsDelta
(
:
)
:
void
;
}
export
interface
IDataTransferFileDTO
{
readonly
:
string
;
readonly
:
string
;
readonly
?
:
;
}
export
interface
DataTransferItemDTO
{
:
string
;
readonly
:
string
;
readonly
:
|
undefined
;
readonly
?
:
<
string
|
>
;
}
export
interface
DataTransferDTO
{
:
Array
<
readonly
[
/* type */
string
,
]
>
;
}
export
interface
CheckboxUpdate
{
:
string
;
:
boolean
;
}
export
interface
ExtHostTreeViewsShape
{
/**
* To reduce what is sent on the wire:
* w
* x
* y
* z
*
* for [x,y] returns
* [[1,z]], where the inner array is [original index, ...children]
*/
$getChildren
(
:
string
,
?
:
string
[
]
)
:
Promise
<
(
readonly
(
number
|
)
[
]
)
[
]
|
undefined
>
;
$handleDrop
(
:
string
,
:
number
,
:
,
:
string
|
undefined
,
:
,
?
:
string
,
?
:
string
,
?
:
string
[
]
)
:
Promise
<
void
>
;
$handleDrag
(
:
string
,
:
string
[
]
,
:
string
,
:
)
:
Promise
<
|
undefined
>
;
$setExpanded
(
:
string
,
:
string
,
:
boolean
)
:
void
;
$setSelectionAndFocus
(
:
string
,
:
string
[
]
,
:
string
)
:
void
;
$setVisible
(
:
string
,
:
boolean
)
:
void
;
$changeCheckboxState
(
:
string
,
:
[
]
)
:
void
;
$hasResolve
(
:
string
)
:
Promise
<
boolean
>
;
$resolve
(
:
string
,
:
string
,
:
)
:
Promise
<
|
undefined
>
;
}
export
interface
ExtHostWorkspaceShape
{
$initializeWorkspace
(
:
|
null
,
:
boolean
)
:
void
;
$acceptWorkspaceData
(
:
|
null
)
:
void
;
$handleTextSearchResult
(
:
.
,
:
number
)
:
void
;
$onDidGrantWorkspaceTrust
(
)
:
void
;
$onDidChangeWorkspaceTrustedFolders
(
)
:
void
;
$getEditSessionIdentifier
(
:
,
:
)
:
Promise
<
string
|
undefined
>
;
$provideEditSessionIdentityMatch
(
:
,
:
string
,
:
string
,
:
)
:
Promise
<
|
undefined
>
;
$onWillCreateEditSessionIdentity
(
:
,
:
,
:
number
)
:
Promise
<
void
>
;
$provideCanonicalUri
(
:
,
:
string
,
:
)
:
Promise
<
|
undefined
>
;
}
export
interface
ExtHostFileSystemInfoShape
{
$acceptProviderInfos
(
:
,
:
number
|
null
)
:
void
;
}
export
interface
ExtHostFileSystemShape
{
$stat
(
:
number
,
:
)
:
Promise
<
.
>
;
$readdir
(
:
number
,
:
)
:
Promise
<
[
string
,
.
]
[
]
>
;
$readFile
(
:
number
,
:
)
:
Promise
<
>
;
$writeFile
(
:
number
,
:
,
:
,
:
.
)
:
Promise
<
void
>
;
$rename
(
:
number
,
:
,
:
,
:
.
)
:
Promise
<
void
>
;
$copy
(
:
number
,
:
,
:
,
:
.
)
:
Promise
<
void
>
;
$mkdir
(
:
number
,
:
)
:
Promise
<
void
>
;
delete
(
:
number
,
:
,
:
.
)
:
Promise
<
void
>
;
$watch
(
:
number
,
:
number
,
:
,
:
.
)
:
void
;
$unwatch
(
:
number
,
:
number
)
:
void
;
$open
(
:
number
,
:
,
:
.
)
:
Promise
<
number
>
;
$close
(
:
number
,
:
number
)
:
Promise
<
void
>
;
$read
(
:
number
,
:
number
,
:
number
,
:
number
)
:
Promise
<
>
;
$write
(
:
number
,
:
number
,
:
number
,
:
)
:
Promise
<
number
>
;
}
export
interface
ExtHostLabelServiceShape
{
$registerResourceLabelFormatter
(
:
)
:
;
}
export
interface
ExtHostAuthenticationShape
{
$getSessions
(
:
string
,
:
string
[
]
|
undefined
,
:
)
:
Promise
<
<
>>
;
$createSession
(
:
string
,
:
string
[
]
,
:
)
:
Promise
<
>
;
$getSessionsFromChallenges
(
:
string
,
:
,
:
)
:
Promise
<
<
>>
;
$createSessionFromChallenges
(
:
string
,
:
,
:
)
:
Promise
<
>
;
$removeSession
(
:
string
,
:
string
)
:
Promise
<
void
>
;
$onDidChangeAuthenticationSessions
(
:
string
,
:
string
,
?
:
string
[
]
)
:
Promise
<
void
>
;
$onDidUnregisterAuthenticationProvider
(
:
string
)
:
Promise
<
void
>
;
$registerDynamicAuthProvider
(
:
,
:
,
?
:
,
?
:
string
,
?
:
string
,
?
:
(
&
{
:
number
}
)
[
]
)
:
Promise
<
string
>
;
$registerXaaAuthProvider
(
:
,
:
,
?
:
string
,
?
:
string
,
?
:
(
&
{
:
number
}
)
[
]
)
:
Promise
<
string
>
;
$onDidChangeDynamicAuthProviderTokens
(
:
string
,
:
string
,
?
:
(
&
{
:
number
}
)
[
]
)
:
Promise
<
void
>
;
}
export
interface
ExtHostAiRelatedInformationShape
{
$provideAiRelatedInformation
(
:
number
,
:
string
,
:
)
:
Promise
<
[
]
>
;
}
export
interface
MainThreadAiRelatedInformationShape
{
$getAiRelatedInformation
(
:
string
,
:
[
]
)
:
Promise
<
[
]
>
;
$registerAiRelatedInformationProvider
(
:
number
,
:
)
:
void
;
$unregisterAiRelatedInformationProvider
(
:
number
)
:
void
;
}
export
interface
ExtHostAiSettingsSearchShape
{
$startSearch
(
:
number
,
:
string
,
:
,
:
)
:
Promise
<
void
>
;
}
export
interface
MainThreadAiSettingsSearchShape
{
$registerAiSettingsSearchProvider
(
:
number
)
:
void
;
$unregisterAiSettingsSearchProvider
(
:
number
)
:
void
;
$handleSearchResult
(
:
number
,
:
)
:
void
;
}
export
interface
ExtHostAiEmbeddingVectorShape
{
$provideAiEmbeddingVector
(
:
number
,
:
string
[
]
,
:
)
:
Promise
<
number
[
]
[
]
>
;
}
export
interface
MainThreadAiEmbeddingVectorShape
{
$registerAiEmbeddingVectorProvider
(
:
string
,
:
number
)
:
void
;
$unregisterAiEmbeddingVectorProvider
(
:
number
)
:
void
;
}
export
interface
ExtHostSecretStateShape
{
$onDidChangePassword
(
:
{
:
string
;
:
string
}
)
:
Promise
<
void
>
;
}
export
interface
ExtHostSearchShape
{
$enableExtensionHostSearch
(
)
:
void
;
$getAIName
(
:
number
)
:
Promise
<
string
|
undefined
>
;
$provideFileSearchResults
(
:
number
,
:
number
,
:
.
,
:
)
:
Promise
<
.
>
;
$provideAITextSearchResults
(
:
number
,
:
number
,
:
.
,
:
)
:
Promise
<
.
>
;
$provideTextSearchResults
(
:
number
,
:
number
,
:
.
,
:
)
:
Promise
<
.
>
;
$clearCache
(
:
string
)
:
Promise
<
void
>
;
}
export
interface
ExtHostExtensionServiceShape
{
$resolveAuthority
(
:
string
,
:
number
)
:
Promise
<
<
>>
;
/**
* Returns `null` if no resolver for `remoteAuthority` is found.
*/
/** Handles a diff of tests, as a result of a subscribeToDiffs() call */
$acceptDiff
(
:
.
[
]
)
:
void
;
/** Expands a test item's children, by the given number of levels. */
$expandTest
(
:
string
,
:
number
)
:
Promise
<
void
>
;
/** Requests coverage details for a test run. Errors if not available. */
$getCoverageDetails
(
:
string
,
:
string
|
undefined
,
:
)
:
Promise
<
.
[
]
>
;
/** Disposes resources associated with a test run. */
$disposeRun
(
:
string
)
:
void
;
/** Configures a test run config. */
$configureRunProfile
(
:
string
,
:
number
)
:
void
;
/** Asks the controller to refresh its tests */
$refreshTests
(
:
string
,
:
)
:
Promise
<
void
>
;
/** Ensures any pending test diffs are flushed */
$syncTests
(
)
:
Promise
<
void
>
;
/** Sets the active test run profiles */
$setDefaultRunProfiles
(
:
<
/* controller id */
string
,
/* profile id */
number
[
]
>
)
:
void
;
$getTestsRelatedToCode
(
:
,
:
,
:
)
:
Promise
<
string
[
]
>
;
$getCodeRelatedToTest
(
:
string
,
:
)
:
Promise
<
[
]
>
;
// --- test results:
/** Publishes that a test run finished. */
$publishTestResults
(
:
[
]
)
:
void
;
/** Requests followup actions for a test (failure) message */
$provideTestFollowups
(
:
,
:
)
:
Promise
<
[
]
>
;
/** Actions a followup actions for a test (failure) message */
$executeTestFollowup
(
:
number
)
:
Promise
<
void
>
;
/** Disposes followup actions for a test (failure) message */
$disposeTestFollowups
(
:
number
[
]
)
:
void
;
}
export
interface
IStartMcpOptions
{
:
.
;
?
:
;
?
:
boolean
;
}
export
interface
ExtHostMcpShape
{
$substituteVariables
(
:
|
undefined
,
:
.
)
:
Promise
<
.
>
;
$resolveMcpLaunch
(
:
string
,
:
string
)
:
Promise
<
.
|
undefined
>
;
$startMcp
(
:
number
,
:
)
:
void
;
$stopMcp
(
:
number
)
:
void
;
$sendMessage
(
:
number
,
:
string
)
:
void
;
$waitForInitialCollectionProviders
(
)
:
Promise
<
void
>
;
$onDidChangeMcpServerDefinitions
(
:
.
[
]
)
:
void
;
$onDidChangeGatewayServers
(
:
string
,
:
{
:
string
;
:
}
[
]
)
:
void
;
}
export
interface
IMcpAuthenticationDetails
{
:
;
:
;
:
|
undefined
;
:
string
[
]
|
undefined
;
?
:
string
;
/**
* When true, the MCP server has opted into enterprise-managed authentication
* (OAuth Identity Assertion Authorization Grant). The main thread is expected
* to route token acquisition through the XAA authentication provider for the
* configured issuer rather than the per-resource dynamic auth provider.
*/
?
:
boolean
;
}
export
interface
IMcpAuthenticationOptions
{
?
:
boolean
;
?
:
boolean
;
?
:
string
;
}
export
const
enum
{
=
'header'
,
=
'wellKnown'
,
=
'none'
,
}
export
const
enum
{
=
'resourceMetadata'
,
=
'wellKnown'
,
=
'default'
,
}
export
interface
IAuthMetadataSource
{
:
;
:
;
}
export
interface
MainThreadMcpShape
{
$onDidChangeState
(
:
number
,
:
)
:
void
;
$onDidPublishLog
(
:
number
,
:
,
:
string
)
:
void
;
$onDidReceiveMessage
(
:
number
,
:
string
)
:
void
;
$upsertMcpCollection
(
:
.
,
:
.
[
]
)
:
void
;
$deleteMcpCollection
(
:
string
)
:
void
;
$getTokenFromServerMetadata
(
:
number
,
:
,
?
:
)
:
Promise
<
string
|
undefined
>
;
$getTokenForProviderId
(
:
number
,
:
string
,
:
string
[
]
,
?
:
)
:
Promise
<
string
|
undefined
>
;
$logMcpAuthSetup
(
:
)
:
void
;
$startMcpGateway
(
?
:
)
:
Promise
<
{
:
{
:
string
;
:
}
[
]
;
:
string
}
|
undefined
>
;
$disposeMcpGateway
(
:
string
)
:
void
;
}
export
interface
MainThreadDataChannelsShape
extends
IDisposable
{
$createLinkPresentationWatcher
(
:
number
,
:
string
,
:
,
:
)
:
void
;
$disposeLinkPresentationWatcher
(
:
number
)
:
void
;
$registerLinkPresentationProvider
(
:
number
,
:
string
,
:
string
)
:
void
;
$unregisterLinkPresentationProvider
(
:
number
)
:
void
;
$acceptLinkPresentationProviderData
(
:
number
,
:
unknown
)
:
void
;
}
export
interface
ExtHostDataChannelsShape
{
$onDidReceiveData
(
:
string
,
:
unknown
)
:
void
;
$acceptLinkPresentationRules
(
:
readonly
{
:
string
;
:
string
;
:
string
;
:
}
[
]
)
:
void
;
$acceptLinkPresentation
(
:
number
,
:
unknown
)
:
void
;
$createLinkPresentationWatcher
(
:
number
,
:
number
,
:
)
:
Promise
<
unknown
>
;
$disposeLinkPresentationWatcher
(
:
number
)
:
void
;
}
export
interface
ExtHostLocalizationShape
{
getMessage
(
:
string
,
:
)
:
string
;
getBundle
(
:
string
)
:
{
[
:
string
]
:
string
}
|
undefined
;
getBundleUri
(
:
string
)
:
URI
|
undefined
;
initializeLocalizedMessages
(
:
)
:
Promise
<
void
>
;
}
export
interface
IStringDetails
{
:
string
;
?
:
<
string
|
number
,
any
>
;
?
:
string
|
string
[
]
;
}
export
interface
ITestControllerPatch
{
?
:
string
;
?
:
;
}
export
interface
MainThreadTestingShape
{
// --- test lifecycle:
/** Registers that there's a test controller with the given ID */
$registerTestController
(
:
string
,
:
string
,
:
)
:
void
;
/** Updates the label of an existing test controller. */
$updateController
(
:
string
,
:
)
:
void
;
/** Diposes of the test controller with the given ID */
$unregisterTestController
(
:
string
)
:
void
;
/** Requests tests published to VS Code. */
$subscribeToDiffs
(
)
:
void
;
/** Stops requesting tests published to VS Code. */
$unsubscribeFromDiffs
(
)
:
void
;
/** Publishes that new tests were available on the given source. */
$publishDiff
(
:
string
,
:
.
[
]
)
:
void
;
/** Gets coverage details from a test result. */
$getCoverageDetails
(
:
string
,
:
number
,
:
,
:
)
:
Promise
<
.
[
]
>
;
// --- test run configurations:
/** Called when a new test run configuration is available */
$publishTestRunProfile
(
:
)
:
void
;
/** Updates an existing test run configuration */
$updateTestRunConfig
(
:
string
,
:
number
,
:
<
>
)
:
void
;
/** Removes a previously-published test run config */
$removeTestProfile
(
:
string
,
:
number
)
:
void
;
// --- test run handling:
/** Request by an extension to run tests. */
$runTests
(
:
,
:
)
:
Promise
<
string
>
;
/**
* Adds tests to the run. The tests are given in descending depth. The first
* item will be a previously-known test, or a test root.
*/
$addTestsToRun
(
:
string
,
:
string
,
:
.
[
]
)
:
void
;
/** Updates the state of a test run in the given run. */
$updateTestStateInRun
(
:
string
,
:
string
,
:
string
,
:
,
?
:
number
)
:
void
;
/** Appends a message to a test in the run. */
$appendTestMessagesInRun
(
:
string
,
:
string
,
:
string
,
:
.
[
]
)
:
void
;
/** Appends raw output to the test run.. */
$appendOutputToRun
(
:
string
,
:
string
,
:
,
?
:
,
?
:
string
)
:
void
;
/** Triggered when coverage is added to test results. */
$appendCoverage
(
:
string
,
:
string
,
:
.
)
:
void
;
/** Signals a task in a test run started. */
$startedTestRunTask
(
:
string
,
:
)
:
void
;
/** Signals a task in a test run ended. */
$finishedTestRunTask
(
:
string
,
:
string
)
:
void
;
/** Start a new extension-provided test run. */
$startedExtensionTestRun
(
:
)
:
void
;
/** Signals that an extension-provided test run finished. */
$finishedExtensionTestRun
(
:
string
)
:
void
;
/** Marks a test (or controller) as retired in all results. */