458f77e29fa5f6797e0436111ef6af2422e60f5ba3d053191c7bc6dbc0ad17d758ff44ac2a4ae97fa95ba467cfb58f2e43bc4d547bcde52f92eb1fed91e908 2.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*---------------------------------------------------------------------------------------------
  2. * Copyright (c) Microsoft Corporation. All rights reserved.
  3. * Licensed under the MIT License. See License.txt in the project root for license information.
  4. *--------------------------------------------------------------------------------------------*/
  5. var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
  6. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  7. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  8. else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
  9. return c > 3 && r && Object.defineProperty(target, key, r), r;
  10. };
  11. var __param = (this && this.__param) || function (paramIndex, decorator) {
  12. return function (target, key) { decorator(target, key, paramIndex); }
  13. };
  14. import { registerEditorContribution } from '../../../browser/editorExtensions.js';
  15. import { ICodeEditorService } from '../../../browser/services/codeEditorService.js';
  16. import { ReferencesController } from '../../../contrib/gotoSymbol/browser/peek/referencesController.js';
  17. import { IConfigurationService } from '../../../../platform/configuration/common/configuration.js';
  18. import { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.js';
  19. import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
  20. import { INotificationService } from '../../../../platform/notification/common/notification.js';
  21. import { IStorageService } from '../../../../platform/storage/common/storage.js';
  22. let StandaloneReferencesController = class StandaloneReferencesController extends ReferencesController {
  23. constructor(editor, contextKeyService, editorService, notificationService, instantiationService, storageService, configurationService) {
  24. super(true, editor, contextKeyService, editorService, notificationService, instantiationService, storageService, configurationService);
  25. }
  26. };
  27. StandaloneReferencesController = __decorate([
  28. __param(1, IContextKeyService),
  29. __param(2, ICodeEditorService),
  30. __param(3, INotificationService),
  31. __param(4, IInstantiationService),
  32. __param(5, IStorageService),
  33. __param(6, IConfigurationService)
  34. ], StandaloneReferencesController);
  35. export { StandaloneReferencesController };
  36. registerEditorContribution(ReferencesController.ID, StandaloneReferencesController);