mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-18 15:55:59 +01:00
Merge branch 'main' into merogge/start-terminal-suggest
This commit is contained in:
@@ -106,7 +106,7 @@ import { ExtensionDescriptionRegistry } from '../../services/extensions/common/e
|
||||
import { UIKind } from '../../services/extensions/common/extensionHostProtocol.js';
|
||||
import { checkProposedApiEnabled, isProposedApiEnabled } from '../../services/extensions/common/extensions.js';
|
||||
import { ProxyIdentifier } from '../../services/extensions/common/proxyIdentifier.js';
|
||||
import { ExcludeSettingOptions, TextSearchCompleteMessageType, TextSearchContextNew, TextSearchMatchNew } from '../../services/search/common/searchExtTypes.js';
|
||||
import { ExcludeSettingOptions, TextSearchCompleteMessageType, TextSearchContext2, TextSearchMatch2 } from '../../services/search/common/searchExtTypes.js';
|
||||
import type * as vscode from 'vscode';
|
||||
import { ExtHostCodeMapper } from './extHostCodeMapper.js';
|
||||
|
||||
@@ -965,14 +965,10 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
// Note, undefined/null have different meanings on "exclude"
|
||||
return extHostWorkspace.findFiles(include, exclude, maxResults, extension.identifier, token);
|
||||
},
|
||||
findFiles2: (filePattern: vscode.GlobPattern, options?: vscode.FindFiles2Options, token?: vscode.CancellationToken): Thenable<vscode.Uri[]> => {
|
||||
findFiles2: (filePattern: vscode.GlobPattern[], options?: vscode.FindFiles2Options, token?: vscode.CancellationToken): Thenable<vscode.Uri[]> => {
|
||||
checkProposedApiEnabled(extension, 'findFiles2');
|
||||
return extHostWorkspace.findFiles2(filePattern, options, extension.identifier, token);
|
||||
},
|
||||
findFiles2New: (filePattern: vscode.GlobPattern[], options?: vscode.FindFiles2OptionsNew, token?: vscode.CancellationToken): Thenable<vscode.Uri[]> => {
|
||||
checkProposedApiEnabled(extension, 'findFiles2New');
|
||||
return extHostWorkspace.findFiles2New(filePattern, options, extension.identifier, token);
|
||||
},
|
||||
findTextInFiles: (query: vscode.TextSearchQuery, optionsOrCallback: vscode.FindTextInFilesOptions | ((result: vscode.TextSearchResult) => void), callbackOrToken?: vscode.CancellationToken | ((result: vscode.TextSearchResult) => void), token?: vscode.CancellationToken) => {
|
||||
checkProposedApiEnabled(extension, 'findTextInFiles');
|
||||
let options: vscode.FindTextInFilesOptions;
|
||||
@@ -989,10 +985,10 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
|
||||
return extHostWorkspace.findTextInFiles(query, options || {}, callback, extension.identifier, token);
|
||||
},
|
||||
findTextInFilesNew: (query: vscode.TextSearchQueryNew, options?: vscode.FindTextInFilesOptionsNew, token?: vscode.CancellationToken): vscode.FindTextInFilesResponse => {
|
||||
checkProposedApiEnabled(extension, 'findTextInFilesNew');
|
||||
checkProposedApiEnabled(extension, 'textSearchProviderNew');
|
||||
return extHostWorkspace.findTextInFilesNew(query, options, extension.identifier, token);
|
||||
findTextInFiles2: (query: vscode.TextSearchQuery2, options?: vscode.FindTextInFilesOptions2, token?: vscode.CancellationToken): vscode.FindTextInFilesResponse => {
|
||||
checkProposedApiEnabled(extension, 'findTextInFiles2');
|
||||
checkProposedApiEnabled(extension, 'textSearchProvider2');
|
||||
return extHostWorkspace.findTextInFiles2(query, options, extension.identifier, token);
|
||||
},
|
||||
save: (uri) => {
|
||||
return extHostWorkspace.save(uri);
|
||||
@@ -1140,23 +1136,17 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
registerAITextSearchProvider: (scheme: string, provider: vscode.AITextSearchProvider) => {
|
||||
// there are some dependencies on textSearchProvider, so we need to check for both
|
||||
checkProposedApiEnabled(extension, 'aiTextSearchProvider');
|
||||
checkProposedApiEnabled(extension, 'textSearchProvider');
|
||||
return extHostSearch.registerAITextSearchProviderOld(scheme, provider);
|
||||
checkProposedApiEnabled(extension, 'textSearchProvider2');
|
||||
return extHostSearch.registerAITextSearchProvider(scheme, provider);
|
||||
},
|
||||
registerFileSearchProviderNew: (scheme: string, provider: vscode.FileSearchProviderNew) => {
|
||||
checkProposedApiEnabled(extension, 'fileSearchProviderNew');
|
||||
registerFileSearchProvider2: (scheme: string, provider: vscode.FileSearchProvider2) => {
|
||||
checkProposedApiEnabled(extension, 'fileSearchProvider2');
|
||||
return extHostSearch.registerFileSearchProvider(scheme, provider);
|
||||
},
|
||||
registerTextSearchProviderNew: (scheme: string, provider: vscode.TextSearchProviderNew) => {
|
||||
checkProposedApiEnabled(extension, 'textSearchProviderNew');
|
||||
registerTextSearchProvider2: (scheme: string, provider: vscode.TextSearchProvider2) => {
|
||||
checkProposedApiEnabled(extension, 'textSearchProvider2');
|
||||
return extHostSearch.registerTextSearchProvider(scheme, provider);
|
||||
},
|
||||
registerAITextSearchProviderNew: (scheme: string, provider: vscode.AITextSearchProviderNew) => {
|
||||
// there are some dependencies on textSearchProvider, so we need to check for both
|
||||
checkProposedApiEnabled(extension, 'aiTextSearchProviderNew');
|
||||
checkProposedApiEnabled(extension, 'textSearchProviderNew');
|
||||
return extHostSearch.registerAITextSearchProvider(scheme, provider);
|
||||
},
|
||||
registerRemoteAuthorityResolver: (authorityPrefix: string, resolver: vscode.RemoteAuthorityResolver) => {
|
||||
checkProposedApiEnabled(extension, 'resolvers');
|
||||
return extensionService.registerRemoteAuthorityResolver(authorityPrefix, resolver);
|
||||
@@ -1798,8 +1788,8 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
InlineEdit: extHostTypes.InlineEdit,
|
||||
InlineEditTriggerKind: extHostTypes.InlineEditTriggerKind,
|
||||
ExcludeSettingOptions: ExcludeSettingOptions,
|
||||
TextSearchContextNew: TextSearchContextNew,
|
||||
TextSearchMatchNew: TextSearchMatchNew,
|
||||
TextSearchContext2: TextSearchContext2,
|
||||
TextSearchMatch2: TextSearchMatch2,
|
||||
TextSearchCompleteMessageTypeNew: TextSearchCompleteMessageType,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user