mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 08:08:39 +01:00
Rename
This commit is contained in:
@@ -112,7 +112,7 @@ import { ExtHostWebviewViews } from './extHostWebviewView.js';
|
||||
import { IExtHostWindow } from './extHostWindow.js';
|
||||
import { IExtHostWorkspace } from './extHostWorkspace.js';
|
||||
import { ExtHostAiSettingsSearch } from './extHostAiSettingsSearch.js';
|
||||
import { IExtHostChatSession } from './extHostChatSessions.js';
|
||||
import { IExtHostChatSessions } from './extHostChatSessions.js';
|
||||
|
||||
export interface IExtensionRegistries {
|
||||
mine: ExtensionDescriptionRegistry;
|
||||
@@ -154,7 +154,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
const extHostLanguageModels = accessor.get(IExtHostLanguageModels);
|
||||
const extHostMcp = accessor.get(IExtHostMpcService);
|
||||
const extHostDataChannels = accessor.get(IExtHostDataChannels);
|
||||
const extHostChatSession = accessor.get(IExtHostChatSession);
|
||||
const extHostChatSessions = accessor.get(IExtHostChatSessions);
|
||||
|
||||
// register addressable instances
|
||||
rpcProtocol.set(ExtHostContext.ExtHostFileSystemInfo, extHostFileSystemInfo);
|
||||
@@ -174,7 +174,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
rpcProtocol.set(ExtHostContext.ExtHostAuthentication, extHostAuthentication);
|
||||
rpcProtocol.set(ExtHostContext.ExtHostChatProvider, extHostLanguageModels);
|
||||
rpcProtocol.set(ExtHostContext.ExtHostDataChannels, extHostDataChannels);
|
||||
rpcProtocol.set(ExtHostContext.ExtHostChatSession, extHostChatSession);
|
||||
rpcProtocol.set(ExtHostContext.ExtHostChatSessions, extHostChatSessions);
|
||||
|
||||
// automatically create and register addressable instances
|
||||
const extHostDecorations = rpcProtocol.set(ExtHostContext.ExtHostDecorations, accessor.get(IExtHostDecorations));
|
||||
@@ -1501,7 +1501,11 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
onDidDisposeChatSession: (listeners, thisArgs?, disposables?) => {
|
||||
checkProposedApiEnabled(extension, 'chatParticipantPrivate');
|
||||
return _asExtensionEvent(extHostChatAgents2.onDidDisposeChatSession)(listeners, thisArgs, disposables);
|
||||
}
|
||||
},
|
||||
registerChatSessionsProvider(provider: vscode.ChatSessionsProvider) {
|
||||
checkProposedApiEnabled(extension, 'chatSessionsProvider');
|
||||
return extHostChatSessions.registerChatSessionsProvider(provider);
|
||||
},
|
||||
};
|
||||
|
||||
// namespace: lm
|
||||
@@ -1569,21 +1573,12 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
}
|
||||
};
|
||||
|
||||
// namespace: chatSession
|
||||
const chatSession = {
|
||||
registerChatSessionInformationProvider(provider: vscode.ChatSessionInformationProvider) {
|
||||
checkProposedApiEnabled(extension, 'chatSessionInformation');
|
||||
return extHostChatSession.registerChatSessionInformationProvider(provider);
|
||||
},
|
||||
};
|
||||
|
||||
// eslint-disable-next-line local/code-no-dangerous-type-assertions
|
||||
return <typeof vscode>{
|
||||
version: initData.version,
|
||||
// namespaces
|
||||
ai,
|
||||
authentication,
|
||||
chatSession,
|
||||
commands,
|
||||
comments,
|
||||
chat,
|
||||
|
||||
Reference in New Issue
Block a user