Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/workbench/contrib/logs/electron-browser/logs.contribution.ts
3296 views
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
6
import { Categories } from '../../../../platform/action/common/actionCommonCategories.js';
7
import { Action2, registerAction2 } from '../../../../platform/actions/common/actions.js';
8
import { OpenLogsFolderAction, OpenExtensionLogsFolderAction } from './logsActions.js';
9
import { ServicesAccessor } from '../../../../editor/browser/editorExtensions.js';
10
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
11
12
registerAction2(class extends Action2 {
13
constructor() {
14
super({
15
id: OpenLogsFolderAction.ID,
16
title: OpenLogsFolderAction.TITLE,
17
category: Categories.Developer,
18
f1: true
19
});
20
}
21
run(servicesAccessor: ServicesAccessor): Promise<void> {
22
return servicesAccessor.get(IInstantiationService).createInstance(OpenLogsFolderAction, OpenLogsFolderAction.ID, OpenLogsFolderAction.TITLE.value).run();
23
}
24
});
25
26
registerAction2(class extends Action2 {
27
constructor() {
28
super({
29
id: OpenExtensionLogsFolderAction.ID,
30
title: OpenExtensionLogsFolderAction.TITLE,
31
category: Categories.Developer,
32
f1: true
33
});
34
}
35
run(servicesAccessor: ServicesAccessor): Promise<void> {
36
return servicesAccessor.get(IInstantiationService).createInstance(OpenExtensionLogsFolderAction, OpenExtensionLogsFolderAction.ID, OpenExtensionLogsFolderAction.TITLE.value).run();
37
}
38
});
39
40