Path: blob/main/src/vs/workbench/contrib/logs/electron-browser/logs.contribution.ts
3296 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import { Categories } from '../../../../platform/action/common/actionCommonCategories.js';6import { Action2, registerAction2 } from '../../../../platform/actions/common/actions.js';7import { OpenLogsFolderAction, OpenExtensionLogsFolderAction } from './logsActions.js';8import { ServicesAccessor } from '../../../../editor/browser/editorExtensions.js';9import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';1011registerAction2(class extends Action2 {12constructor() {13super({14id: OpenLogsFolderAction.ID,15title: OpenLogsFolderAction.TITLE,16category: Categories.Developer,17f1: true18});19}20run(servicesAccessor: ServicesAccessor): Promise<void> {21return servicesAccessor.get(IInstantiationService).createInstance(OpenLogsFolderAction, OpenLogsFolderAction.ID, OpenLogsFolderAction.TITLE.value).run();22}23});2425registerAction2(class extends Action2 {26constructor() {27super({28id: OpenExtensionLogsFolderAction.ID,29title: OpenExtensionLogsFolderAction.TITLE,30category: Categories.Developer,31f1: true32});33}34run(servicesAccessor: ServicesAccessor): Promise<void> {35return servicesAccessor.get(IInstantiationService).createInstance(OpenExtensionLogsFolderAction, OpenExtensionLogsFolderAction.ID, OpenExtensionLogsFolderAction.TITLE.value).run();36}37});383940