add proposed API check (#204705)

fyi @andreamah
This commit is contained in:
Johannes Rieken 2024-02-08 11:41:49 +01:00 committed by GitHub
parent cccd228808
commit 7b0e5303dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -939,6 +939,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
return extHostWorkspace.findFiles(include, exclude, maxResults, extension.identifier, token);
},
findFiles2: (filePattern, options?, token?) => {
checkProposedApiEnabled(extension, 'findFiles2');
return extHostWorkspace.findFiles2(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) => {