mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 08:08:39 +01:00
Merge remote-tracking branch 'origin/main' into connor4312/inline-remote-resolver
This commit is contained in:
@@ -101,6 +101,7 @@ import { ExtHostInteractiveSession } from 'vs/workbench/api/common/extHostIntera
|
||||
import { ExtHostInteractiveEditor } from 'vs/workbench/api/common/extHostInteractiveEditor';
|
||||
import { ExtHostNotebookDocumentSaveParticipant } from 'vs/workbench/api/common/extHostNotebookDocumentSaveParticipant';
|
||||
import { ExtHostSemanticSimilarity } from 'vs/workbench/api/common/extHostSemanticSimilarity';
|
||||
import { ExtHostIssueReporter } from 'vs/workbench/api/common/extHostIssueReporter';
|
||||
|
||||
export interface IExtensionRegistries {
|
||||
mine: ExtensionDescriptionRegistry;
|
||||
@@ -199,6 +200,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
const extHostInteractiveEditor = rpcProtocol.set(ExtHostContext.ExtHostInteractiveEditor, new ExtHostInteractiveEditor(rpcProtocol, extHostDocuments, extHostLogService));
|
||||
const extHostInteractiveSession = rpcProtocol.set(ExtHostContext.ExtHostInteractiveSession, new ExtHostInteractiveSession(rpcProtocol, extHostLogService));
|
||||
const extHostSemanticSimilarity = rpcProtocol.set(ExtHostContext.ExtHostSemanticSimilarity, new ExtHostSemanticSimilarity(rpcProtocol));
|
||||
const extHostIssueReporter = rpcProtocol.set(ExtHostContext.ExtHostIssueReporter, new ExtHostIssueReporter(rpcProtocol));
|
||||
|
||||
// Check that no named customers are missing
|
||||
const expected = Object.values<ProxyIdentifier<any>>(ExtHostContext);
|
||||
@@ -388,6 +390,10 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
},
|
||||
get onDidChangeLogLevel() {
|
||||
return extHostLogService.onDidChangeLogLevel;
|
||||
},
|
||||
registerIssueUriRequestHandler(handler: vscode.IssueUriRequestHandler) {
|
||||
checkProposedApiEnabled(extension, 'handleIssueUri');
|
||||
return extHostIssueReporter.registerIssueUriRequestHandler(extension, handler);
|
||||
}
|
||||
};
|
||||
if (!initData.environment.extensionTestsLocationURI) {
|
||||
@@ -887,6 +893,14 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
|
||||
return extHostWorkspace.findTextInFiles(query, options || {}, callback, extension.identifier, token);
|
||||
},
|
||||
save: (uri) => {
|
||||
checkProposedApiEnabled(extension, 'saveEditor');
|
||||
return extHostWorkspace.save(uri);
|
||||
},
|
||||
saveAs: (uri) => {
|
||||
checkProposedApiEnabled(extension, 'saveEditor');
|
||||
return extHostWorkspace.saveAs(uri);
|
||||
},
|
||||
saveAll: (includeUntitled?) => {
|
||||
return extHostWorkspace.saveAll(includeUntitled);
|
||||
},
|
||||
@@ -1124,6 +1138,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
return extHostDebugService.onDidChangeBreakpoints(listener, thisArgs, disposables);
|
||||
},
|
||||
onDidChangeStackFrameFocus(listener, thisArg?, disposables?) {
|
||||
checkProposedApiEnabled(extension, 'debugFocus');
|
||||
return extHostDebugService.onDidChangeStackFrameFocus(listener, thisArg, disposables);
|
||||
},
|
||||
registerDebugConfigurationProvider(debugType: string, provider: vscode.DebugConfigurationProvider, triggerKind?: vscode.DebugConfigurationProviderTriggerKind) {
|
||||
@@ -1256,6 +1271,14 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
}
|
||||
};
|
||||
|
||||
// namespace: interactiveSlashCommands
|
||||
const interactiveSlashCommands: typeof vscode.interactiveSlashCommands = {
|
||||
registerSlashCommandProvider(chatProviderId: string, provider: vscode.InteractiveSlashCommandProvider) {
|
||||
checkProposedApiEnabled(extension, 'interactiveSlashCommands');
|
||||
return extHostInteractiveSession.registerSlashCommandProvider(extension, chatProviderId, provider);
|
||||
}
|
||||
};
|
||||
|
||||
// namespace: ai
|
||||
const ai: typeof vscode.ai = {
|
||||
registerSemanticSimilarityProvider(provider: vscode.SemanticSimilarityProvider) {
|
||||
@@ -1275,6 +1298,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
env,
|
||||
extensions,
|
||||
interactive,
|
||||
interactiveSlashCommands,
|
||||
l10n,
|
||||
languages,
|
||||
notebooks,
|
||||
|
||||
Reference in New Issue
Block a user