mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:28:52 +01:00
remove getExtension workaround (#159758)
fixes https://github.com/microsoft/vscode/issues/153320
This commit is contained in:
@@ -92,7 +92,6 @@ import { ExtHostInteractive } from 'vs/workbench/api/common/extHostInteractive';
|
||||
import { combinedDisposable } from 'vs/base/common/lifecycle';
|
||||
import { checkProposedApiEnabled, ExtensionIdentifierSet, isProposedApiEnabled } from 'vs/workbench/services/extensions/common/extensions';
|
||||
import { DebugConfigurationProviderTriggerKind } from 'vs/workbench/contrib/debug/common/debug';
|
||||
import { equalsIgnoreCase } from 'vs/base/common/strings';
|
||||
import { IExtHostTelemetryLogService } from 'vs/workbench/api/common/extHostTelemetryLogService';
|
||||
|
||||
export interface IExtensionRegistries {
|
||||
@@ -395,11 +394,6 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
|
||||
const extensions: typeof vscode.extensions = {
|
||||
getExtension(extensionId: string, includeFromDifferentExtensionHosts?: boolean): vscode.Extension<any> | undefined {
|
||||
if (equalsIgnoreCase(extensionId, 'ms-vscode.references-view')) {
|
||||
extHostApiDeprecation.report(`The extension 'ms-vscode.references-view' has been renamed.`, extension, `Use 'vscode.references-view' instead.`);
|
||||
extensionId = 'vscode.references-view';
|
||||
}
|
||||
|
||||
if (!isProposedApiEnabled(extension, 'extensionsAny')) {
|
||||
includeFromDifferentExtensionHosts = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user