@theia/toolbar 1.67.0-next.3 → 1.67.0-next.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -1
- package/package.json +12 -11
- package/src/browser/icons/codicons.ts +647 -0
- package/src/browser/icons/font-awesome-icons.ts +804 -0
- package/src/browser/icons/icon-set-provider.ts +135 -0
- package/src/browser/style/toolbar.css +12 -19
- package/src/browser/toolbar-icon-selector-dialog.tsx +43 -36
- package/lib/browser/abstract-toolbar-contribution.d.ts +0 -17
- package/lib/browser/abstract-toolbar-contribution.d.ts.map +0 -1
- package/lib/browser/abstract-toolbar-contribution.js +0 -61
- package/lib/browser/abstract-toolbar-contribution.js.map +0 -1
- package/lib/browser/application-shell-with-toolbar-override.d.ts +0 -17
- package/lib/browser/application-shell-with-toolbar-override.d.ts.map +0 -1
- package/lib/browser/application-shell-with-toolbar-override.js +0 -91
- package/lib/browser/application-shell-with-toolbar-override.js.map +0 -1
- package/lib/browser/codicons.d.ts +0 -2
- package/lib/browser/codicons.d.ts.map +0 -1
- package/lib/browser/codicons.js +0 -21
- package/lib/browser/codicons.js.map +0 -1
- package/lib/browser/font-awesome-icons.d.ts +0 -2
- package/lib/browser/font-awesome-icons.d.ts.map +0 -1
- package/lib/browser/font-awesome-icons.js +0 -21
- package/lib/browser/font-awesome-icons.js.map +0 -1
- package/lib/browser/package.spec.d.ts +0 -1
- package/lib/browser/package.spec.d.ts.map +0 -1
- package/lib/browser/package.spec.js +0 -19
- package/lib/browser/package.spec.js.map +0 -1
- package/lib/browser/toolbar-command-contribution.d.ts +0 -21
- package/lib/browser/toolbar-command-contribution.d.ts.map +0 -1
- package/lib/browser/toolbar-command-contribution.js +0 -188
- package/lib/browser/toolbar-command-contribution.js.map +0 -1
- package/lib/browser/toolbar-command-quick-input-service.d.ts +0 -20
- package/lib/browser/toolbar-command-quick-input-service.d.ts.map +0 -1
- package/lib/browser/toolbar-command-quick-input-service.js +0 -105
- package/lib/browser/toolbar-command-quick-input-service.js.map +0 -1
- package/lib/browser/toolbar-constants.d.ts +0 -24
- package/lib/browser/toolbar-constants.d.ts.map +0 -1
- package/lib/browser/toolbar-constants.js +0 -76
- package/lib/browser/toolbar-constants.js.map +0 -1
- package/lib/browser/toolbar-content-hover-widget-patcher.d.ts +0 -9
- package/lib/browser/toolbar-content-hover-widget-patcher.d.ts.map +0 -1
- package/lib/browser/toolbar-content-hover-widget-patcher.js +0 -53
- package/lib/browser/toolbar-content-hover-widget-patcher.js.map +0 -1
- package/lib/browser/toolbar-controller.d.ts +0 -40
- package/lib/browser/toolbar-controller.d.ts.map +0 -1
- package/lib/browser/toolbar-controller.js +0 -199
- package/lib/browser/toolbar-controller.js.map +0 -1
- package/lib/browser/toolbar-defaults.d.ts +0 -4
- package/lib/browser/toolbar-defaults.d.ts.map +0 -1
- package/lib/browser/toolbar-defaults.js +0 -61
- package/lib/browser/toolbar-defaults.js.map +0 -1
- package/lib/browser/toolbar-frontend-module.d.ts +0 -5
- package/lib/browser/toolbar-frontend-module.d.ts.map +0 -1
- package/lib/browser/toolbar-frontend-module.js +0 -28
- package/lib/browser/toolbar-frontend-module.js.map +0 -1
- package/lib/browser/toolbar-icon-selector-dialog.d.ts +0 -66
- package/lib/browser/toolbar-icon-selector-dialog.d.ts.map +0 -1
- package/lib/browser/toolbar-icon-selector-dialog.js +0 -225
- package/lib/browser/toolbar-icon-selector-dialog.js.map +0 -1
- package/lib/browser/toolbar-interfaces.d.ts +0 -47
- package/lib/browser/toolbar-interfaces.d.ts.map +0 -1
- package/lib/browser/toolbar-interfaces.js +0 -43
- package/lib/browser/toolbar-interfaces.js.map +0 -1
- package/lib/browser/toolbar-preference-schema.d.ts +0 -6
- package/lib/browser/toolbar-preference-schema.d.ts.map +0 -1
- package/lib/browser/toolbar-preference-schema.js +0 -74
- package/lib/browser/toolbar-preference-schema.js.map +0 -1
- package/lib/browser/toolbar-storage-provider.d.ts +0 -50
- package/lib/browser/toolbar-storage-provider.d.ts.map +0 -1
- package/lib/browser/toolbar-storage-provider.js +0 -347
- package/lib/browser/toolbar-storage-provider.js.map +0 -1
- package/lib/browser/toolbar.d.ts +0 -57
- package/lib/browser/toolbar.d.ts.map +0 -1
- package/lib/browser/toolbar.js +0 -332
- package/lib/browser/toolbar.js.map +0 -1
- package/lib/common/toolbar-preference-contribution.d.ts +0 -11
- package/lib/common/toolbar-preference-contribution.d.ts.map +0 -1
- package/lib/common/toolbar-preference-contribution.js +0 -34
- package/lib/common/toolbar-preference-contribution.js.map +0 -1
- package/lib/node/toolbar-backend-module.d.ts +0 -4
- package/lib/node/toolbar-backend-module.d.ts.map +0 -1
- package/lib/node/toolbar-backend-module.js +0 -26
- package/lib/node/toolbar-backend-module.js.map +0 -1
- package/src/browser/codicons.ts +0 -18
- package/src/browser/font-awesome-icons.ts +0 -18
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2025 EclipseSource GmbH.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
|
|
17
|
+
import { injectable, postConstruct } from '@theia/core/shared/inversify';
|
|
18
|
+
import { IconSet } from '../toolbar-interfaces';
|
|
19
|
+
import { fontAwesomeMapping } from './font-awesome-icons';
|
|
20
|
+
import { codiconsMapping } from './codicons';
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Provider for icon set information including:
|
|
24
|
+
* - List of unique icon IDs to avoid duplicate icons due to different keywords
|
|
25
|
+
* - Metadata about each icon (main keyword and all associated keywords)
|
|
26
|
+
*/
|
|
27
|
+
@injectable()
|
|
28
|
+
export class IconSetProvider {
|
|
29
|
+
|
|
30
|
+
private readonly iconSetMappings = new Map<IconSet, Record<string, string | number>>();
|
|
31
|
+
private readonly iconsBySet = new Map<IconSet, string[]>();
|
|
32
|
+
private readonly infoMapBySet = new Map<IconSet, Map<string, { mainKeyword: string; allKeywords: string }>>();
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Initializes all available icon sets
|
|
36
|
+
*/
|
|
37
|
+
@postConstruct()
|
|
38
|
+
protected init(): void {
|
|
39
|
+
// Register built-in icon sets
|
|
40
|
+
this.registerIconSet(IconSet.FA, fontAwesomeMapping);
|
|
41
|
+
this.registerIconSet(IconSet.CODICON, codiconsMapping);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Registers a new icon set with its mapping
|
|
46
|
+
*
|
|
47
|
+
* @param iconSet The icon set identifier
|
|
48
|
+
* @param mapping The mapping object that maps icon names to their values
|
|
49
|
+
*/
|
|
50
|
+
registerIconSet(iconSet: IconSet, mapping: Record<string, string | number>): void {
|
|
51
|
+
// Store the mapping
|
|
52
|
+
this.iconSetMappings.set(iconSet, mapping);
|
|
53
|
+
|
|
54
|
+
// Initialize the icons array and infoMap for this set
|
|
55
|
+
const icons: string[] = [];
|
|
56
|
+
const infoMap = new Map<string, { mainKeyword: string; allKeywords: string }>();
|
|
57
|
+
const iconValueToKeywords = new Map<string | number, string[]>();
|
|
58
|
+
|
|
59
|
+
// Process all mappings to group keywords by their icon value
|
|
60
|
+
Object.entries(mapping).forEach(([keyword, value]) => {
|
|
61
|
+
if (!iconValueToKeywords.has(value)) {
|
|
62
|
+
iconValueToKeywords.set(value, [keyword]);
|
|
63
|
+
} else {
|
|
64
|
+
iconValueToKeywords.get(value)?.push(keyword);
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
// For each unique icon value, create an entry with the first keyword and store all keywords
|
|
69
|
+
iconValueToKeywords.forEach((keywords, value) => {
|
|
70
|
+
keywords.sort();
|
|
71
|
+
const mainKeyword = keywords[0];
|
|
72
|
+
const allKeywords = keywords.join(', ');
|
|
73
|
+
|
|
74
|
+
const iconId = mainKeyword;
|
|
75
|
+
icons.push(iconId);
|
|
76
|
+
|
|
77
|
+
infoMap.set(iconId, {
|
|
78
|
+
mainKeyword,
|
|
79
|
+
allKeywords
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
// Store the processed data for this icon set
|
|
84
|
+
this.iconsBySet.set(iconSet, icons);
|
|
85
|
+
this.infoMapBySet.set(iconSet, infoMap);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Gets the list of all icon IDs for a specific icon set
|
|
90
|
+
*
|
|
91
|
+
* @param iconSet The icon set to get icons for
|
|
92
|
+
* @returns Array of icon IDs in the specified set
|
|
93
|
+
*/
|
|
94
|
+
getIcons(iconSet: IconSet): string[] {
|
|
95
|
+
return this.iconsBySet.get(iconSet) || [];
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Returns the keywords associated with the given icon ID in a specific icon set
|
|
100
|
+
*
|
|
101
|
+
* @param iconSet The icon set to get keywords from
|
|
102
|
+
* @param iconId The icon ID to get keywords for
|
|
103
|
+
* @returns A comma-separated string of keywords
|
|
104
|
+
*/
|
|
105
|
+
getKeywords(iconSet: IconSet, iconId: string): string {
|
|
106
|
+
const infoMap = this.infoMapBySet.get(iconSet);
|
|
107
|
+
if (infoMap) {
|
|
108
|
+
const info = infoMap.get(iconId);
|
|
109
|
+
if (info) {
|
|
110
|
+
return info.allKeywords;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
return iconId;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Returns the mapping for a specific icon set
|
|
118
|
+
*
|
|
119
|
+
* @param iconSet The icon set to get the mapping for
|
|
120
|
+
* @returns The mapping object for the specified icon set
|
|
121
|
+
*/
|
|
122
|
+
getMapping(iconSet: IconSet): Record<string, string | number> {
|
|
123
|
+
return this.iconSetMappings.get(iconSet) || {};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Checks if an icon set is registered
|
|
128
|
+
*
|
|
129
|
+
* @param iconSet The icon set to check
|
|
130
|
+
* @returns True if the icon set is registered
|
|
131
|
+
*/
|
|
132
|
+
hasIconSet(iconSet: IconSet): boolean {
|
|
133
|
+
return this.iconSetMappings.has(iconSet);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
@@ -170,11 +170,17 @@
|
|
|
170
170
|
|
|
171
171
|
#toolbar-icon-selector-dialog .dialogContent .icon-selector-options {
|
|
172
172
|
display: flex;
|
|
173
|
+
align-items: center;
|
|
173
174
|
}
|
|
174
175
|
|
|
175
|
-
#toolbar-icon-selector-dialog .dialogContent .icon-wrapper
|
|
176
|
-
|
|
177
|
-
|
|
176
|
+
#toolbar-icon-selector-dialog .dialogContent .icon-selector-options .icon-set-selector-wrapper {
|
|
177
|
+
display: flex;
|
|
178
|
+
align-items: baseline;
|
|
179
|
+
gap: var(--theia-ui-padding);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
#toolbar-icon-selector-dialog .dialogContent .icon-selector-options .icon-set-selector-wrapper .theia-select-component {
|
|
183
|
+
width: 125px
|
|
178
184
|
}
|
|
179
185
|
|
|
180
186
|
#toolbar-icon-selector-dialog .dialogControl {
|
|
@@ -222,29 +228,16 @@
|
|
|
222
228
|
justify-content: space-between;
|
|
223
229
|
}
|
|
224
230
|
|
|
225
|
-
#toolbar-icon-selector-dialog .icon-selector-options .icon-filter-input {
|
|
226
|
-
height: 18px;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
#toolbar-icon-selector-dialog .toolbar-icon-select {
|
|
230
|
-
margin-bottom: var(--theia-ui-padding);
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
#toolbar-icon-selector-dialog
|
|
234
|
-
.toolbar-icon-dialog-content
|
|
235
|
-
.icon-wrapper.selected {
|
|
236
|
-
background-color: var(--theia-list-activeSelectionBackground);
|
|
237
|
-
}
|
|
238
|
-
|
|
239
231
|
#toolbar-icon-selector-dialog .toolbar-icon-dialog-content .fa,
|
|
240
232
|
#toolbar-icon-selector-dialog .toolbar-icon-dialog-content .codicon {
|
|
241
233
|
font-size: var(--theia-icon-dialog-icon-size);
|
|
242
234
|
}
|
|
243
235
|
|
|
244
236
|
#toolbar-icon-selector-dialog .toolbar-scroll-container {
|
|
245
|
-
height:
|
|
237
|
+
height: 365px;
|
|
246
238
|
position: relative;
|
|
247
239
|
padding: 0 var(--theia-ui-padding);
|
|
248
|
-
|
|
240
|
+
margin-top: calc(var(--theia-ui-padding) * 2);
|
|
241
|
+
/* border: 1px solid var(--theia-editorWidget-border); FUNNY - this interefers and allows endless scrolling */
|
|
249
242
|
background-color: var(--theia-dropdown-background);
|
|
250
243
|
}
|
|
@@ -14,21 +14,21 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
+
import { Command, Disposable, nls } from '@theia/core';
|
|
18
|
+
import { DEFAULT_SCROLL_OPTIONS, Dialog, DialogProps, Message } from '@theia/core/lib/browser';
|
|
19
|
+
import { ReactDialog } from '@theia/core/lib/browser/dialogs/react-dialog';
|
|
20
|
+
import { FuzzySearch } from '@theia/core/lib/browser/tree/fuzzy-search';
|
|
21
|
+
import { SelectComponent, SelectOption } from '@theia/core/lib/browser/widgets/select-component';
|
|
22
|
+
import { Deferred } from '@theia/core/lib/common/promise-util';
|
|
23
|
+
import { inject, injectable, interfaces, postConstruct } from '@theia/core/shared/inversify';
|
|
17
24
|
import * as React from '@theia/core/shared/react';
|
|
18
25
|
import { createRoot, Root } from '@theia/core/shared/react-dom/client';
|
|
19
|
-
import { injectable, interfaces, inject, postConstruct } from '@theia/core/shared/inversify';
|
|
20
|
-
import debounce = require('@theia/core/shared/lodash.debounce');
|
|
21
|
-
import { ReactDialog } from '@theia/core/lib/browser/dialogs/react-dialog';
|
|
22
|
-
import { DEFAULT_SCROLL_OPTIONS, Dialog, DialogProps, Message } from '@theia/core/lib/browser';
|
|
23
|
-
import { Command, Disposable, nls } from '@theia/core';
|
|
24
26
|
import { FileService } from '@theia/filesystem/lib/browser/file-service';
|
|
25
|
-
import { Deferred } from '@theia/core/lib/common/promise-util';
|
|
26
27
|
import PerfectScrollbar from 'perfect-scrollbar';
|
|
27
|
-
import {
|
|
28
|
-
import { codicons } from './codicons';
|
|
29
|
-
import { fontAwesomeIcons } from './font-awesome-icons';
|
|
30
|
-
import { IconSet } from './toolbar-interfaces';
|
|
28
|
+
import { IconSetProvider } from './icons/icon-set-provider';
|
|
31
29
|
import { ReactInteraction, ReactKeyboardEvent } from './toolbar-constants';
|
|
30
|
+
import { IconSet } from './toolbar-interfaces';
|
|
31
|
+
import debounce = require('@theia/core/shared/lodash.debounce');
|
|
32
32
|
|
|
33
33
|
export interface ToolbarIconDialogFactory {
|
|
34
34
|
(command: Command): ToolbarIconSelectorDialog;
|
|
@@ -36,16 +36,14 @@ export interface ToolbarIconDialogFactory {
|
|
|
36
36
|
|
|
37
37
|
export const ToolbarIconDialogFactory = Symbol('ToolbarIconDialogFactory');
|
|
38
38
|
export const ToolbarCommand = Symbol('ToolbarCommand');
|
|
39
|
-
export const FontAwesomeIcons = Symbol('FontAwesomeIcons');
|
|
40
|
-
export const CodiconIcons = Symbol('CodiconIcons');
|
|
41
39
|
|
|
42
40
|
const FIFTY_MS = 50;
|
|
41
|
+
|
|
43
42
|
@injectable()
|
|
44
43
|
export class ToolbarIconSelectorDialog extends ReactDialog<string | undefined> {
|
|
45
44
|
@inject(ToolbarCommand) protected readonly toolbarCommand: Command;
|
|
46
45
|
@inject(FileService) protected readonly fileService: FileService;
|
|
47
|
-
@inject(
|
|
48
|
-
@inject(CodiconIcons) protected readonly codiconIcons: string[];
|
|
46
|
+
@inject(IconSetProvider) protected readonly iconSetProvider: IconSetProvider;
|
|
49
47
|
@inject(FuzzySearch) protected readonly fuzzySearch: FuzzySearch;
|
|
50
48
|
|
|
51
49
|
static ID = 'toolbar-icon-selector-dialog';
|
|
@@ -55,7 +53,7 @@ export class ToolbarIconSelectorDialog extends ReactDialog<string | undefined> {
|
|
|
55
53
|
|
|
56
54
|
protected selectedIcon: string | undefined;
|
|
57
55
|
protected activeIconPrefix: IconSet = IconSet.CODICON;
|
|
58
|
-
protected iconSets = new Map<
|
|
56
|
+
protected iconSets = new Map<IconSet, string[]>();
|
|
59
57
|
protected filteredIcons: string[] = [];
|
|
60
58
|
protected doShowFilterPlaceholder = false;
|
|
61
59
|
protected debounceHandleSearch = debounce(this.doHandleSearch.bind(this), FIFTY_MS, { trailing: true });
|
|
@@ -77,8 +75,14 @@ export class ToolbarIconSelectorDialog extends ReactDialog<string | undefined> {
|
|
|
77
75
|
@postConstruct()
|
|
78
76
|
protected init(): void {
|
|
79
77
|
this.node.id = ToolbarIconSelectorDialog.ID;
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
|
|
79
|
+
// Initialize icon sets from the provider
|
|
80
|
+
for (const iconSet of [IconSet.FA, IconSet.CODICON]) {
|
|
81
|
+
if (this.iconSetProvider.hasIconSet(iconSet)) {
|
|
82
|
+
this.iconSets.set(iconSet, this.iconSetProvider.getIcons(iconSet));
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
82
86
|
this.activeIconPrefix = IconSet.CODICON;
|
|
83
87
|
const initialIcons = this.iconSets.get(this.activeIconPrefix);
|
|
84
88
|
if (initialIcons) {
|
|
@@ -104,10 +108,9 @@ export class ToolbarIconSelectorDialog extends ReactDialog<string | undefined> {
|
|
|
104
108
|
return this.selectedIcon;
|
|
105
109
|
}
|
|
106
110
|
|
|
107
|
-
protected handleSelectOnChange = async (
|
|
108
|
-
protected async doHandleSelectOnChange(
|
|
109
|
-
|
|
110
|
-
this.activeIconPrefix = value as IconSet;
|
|
111
|
+
protected handleSelectOnChange = async (option: SelectOption): Promise<void> => this.doHandleSelectOnChange(option);
|
|
112
|
+
protected async doHandleSelectOnChange(option: SelectOption): Promise<void> {
|
|
113
|
+
this.activeIconPrefix = option.value as IconSet;
|
|
111
114
|
this.filteredIcons = [];
|
|
112
115
|
await this.doHandleSearch();
|
|
113
116
|
this.update();
|
|
@@ -117,16 +120,15 @@ export class ToolbarIconSelectorDialog extends ReactDialog<string | undefined> {
|
|
|
117
120
|
return (
|
|
118
121
|
<div className='icon-selector-options'>
|
|
119
122
|
<div className='icon-set-selector-wrapper'>
|
|
120
|
-
{nls.localize('theia/toolbar/iconSet', 'Icon Set')}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
123
|
+
<span>{nls.localize('theia/toolbar/iconSet', 'Icon Set')}{': '}</span>
|
|
124
|
+
<SelectComponent
|
|
125
|
+
key='iconSetSelector'
|
|
126
|
+
options={[
|
|
127
|
+
{ value: IconSet.CODICON, label: 'Codicon' },
|
|
128
|
+
{ value: IconSet.FA, label: 'Font Awesome' }
|
|
129
|
+
]}
|
|
124
130
|
onChange={this.handleSelectOnChange}
|
|
125
|
-
defaultValue={
|
|
126
|
-
>
|
|
127
|
-
<option key={IconSet.CODICON} value={IconSet.CODICON}>Codicon</option>
|
|
128
|
-
<option key={IconSet.FA} value={IconSet.FA}>Font Awesome</option>
|
|
129
|
-
</select>
|
|
131
|
+
defaultValue={this.activeIconPrefix} />
|
|
130
132
|
</div>
|
|
131
133
|
<div className='icon-fuzzy-filter'>
|
|
132
134
|
<input
|
|
@@ -157,11 +159,12 @@ export class ToolbarIconSelectorDialog extends ReactDialog<string | undefined> {
|
|
|
157
159
|
key={icon}
|
|
158
160
|
role='button'
|
|
159
161
|
onClick={this.handleOnIconClick}
|
|
162
|
+
onDoubleClick={e => this.doAccept(e)}
|
|
160
163
|
onBlur={this.handleOnIconBlur}
|
|
161
164
|
tabIndex={0}
|
|
162
165
|
data-id={`${this.activeIconPrefix} ${icon}`}
|
|
163
|
-
title={icon}
|
|
164
|
-
|
|
166
|
+
title={this.iconSetProvider.getKeywords(this.activeIconPrefix, icon)}
|
|
167
|
+
onKeyDown={this.handleOnIconClick}
|
|
165
168
|
>
|
|
166
169
|
<div className={`${this.activeIconPrefix} ${icon}`} />
|
|
167
170
|
</div>
|
|
@@ -187,9 +190,13 @@ export class ToolbarIconSelectorDialog extends ReactDialog<string | undefined> {
|
|
|
187
190
|
const items = this.iconSets.get(this.activeIconPrefix);
|
|
188
191
|
if (items) {
|
|
189
192
|
if (pattern.length) {
|
|
190
|
-
|
|
193
|
+
// Transform the item to include all related keywords for search
|
|
194
|
+
const transform = (item: string): string =>
|
|
195
|
+
this.iconSetProvider.getKeywords(this.activeIconPrefix, item);
|
|
196
|
+
|
|
191
197
|
const filterResults = await this.fuzzySearch.filter({ pattern, items, transform });
|
|
192
198
|
this.filteredIcons = filterResults.map(result => result.item);
|
|
199
|
+
|
|
193
200
|
if (!this.filteredIcons.length) {
|
|
194
201
|
this.doShowFilterPlaceholder = true;
|
|
195
202
|
} else {
|
|
@@ -221,7 +228,7 @@ export class ToolbarIconSelectorDialog extends ReactDialog<string | undefined> {
|
|
|
221
228
|
e.currentTarget.classList.remove('selected');
|
|
222
229
|
}
|
|
223
230
|
|
|
224
|
-
protected doAccept = (e:
|
|
231
|
+
protected doAccept = (e: React.MouseEvent<HTMLButtonElement | HTMLDivElement>): void => {
|
|
225
232
|
const dataId = e.currentTarget.getAttribute('data-id');
|
|
226
233
|
if (dataId === 'default-accept') {
|
|
227
234
|
this.selectedIcon = this.toolbarCommand.iconClass;
|
|
@@ -280,14 +287,14 @@ export const ICON_DIALOG_WIDTH = 600;
|
|
|
280
287
|
export const ICON_DIALOG_PADDING = 24;
|
|
281
288
|
|
|
282
289
|
export const bindToolbarIconDialog = (bind: interfaces.Bind): void => {
|
|
290
|
+
bind(IconSetProvider).toSelf().inSingletonScope();
|
|
291
|
+
|
|
283
292
|
bind(ToolbarIconDialogFactory).toFactory(ctx => (command: Command): ToolbarIconSelectorDialog => {
|
|
284
293
|
const child = ctx.container.createChild();
|
|
285
294
|
child.bind(DialogProps).toConstantValue({
|
|
286
295
|
title: nls.localize('theia/toolbar/iconSelectDialog', "Select an Icon for '{0}'", command.label),
|
|
287
296
|
maxWidth: ICON_DIALOG_WIDTH + ICON_DIALOG_PADDING,
|
|
288
297
|
});
|
|
289
|
-
child.bind(FontAwesomeIcons).toConstantValue(fontAwesomeIcons);
|
|
290
|
-
child.bind(CodiconIcons).toConstantValue(codicons);
|
|
291
298
|
child.bind(ToolbarCommand).toConstantValue(command);
|
|
292
299
|
child.bind(FuzzySearch).toSelf().inSingletonScope();
|
|
293
300
|
child.bind(ToolbarIconSelectorDialog).toSelf().inSingletonScope();
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import * as React from '@theia/core/shared/react';
|
|
3
|
-
import { CommandService, Emitter } from '@theia/core';
|
|
4
|
-
import { ContextMenuRenderer, KeybindingRegistry } from '@theia/core/lib/browser';
|
|
5
|
-
import { DeflatedContributedToolbarItem, ToolbarContribution } from './toolbar-interfaces';
|
|
6
|
-
export declare abstract class AbstractToolbarContribution implements ToolbarContribution {
|
|
7
|
-
protected readonly keybindingRegistry: KeybindingRegistry;
|
|
8
|
-
protected readonly contextMenuRenderer: ContextMenuRenderer;
|
|
9
|
-
protected readonly commandService: CommandService;
|
|
10
|
-
abstract id: string;
|
|
11
|
-
protected didChangeEmitter: Emitter<void>;
|
|
12
|
-
readonly onDidChange: import("@theia/core").Event<void>;
|
|
13
|
-
abstract render(): React.ReactNode;
|
|
14
|
-
toJSON(): DeflatedContributedToolbarItem;
|
|
15
|
-
protected resolveKeybindingForCommand(commandID: string | undefined): string;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=abstract-toolbar-contribution.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstract-toolbar-contribution.d.ts","sourceRoot":"","sources":["../../src/browser/abstract-toolbar-contribution.tsx"],"names":[],"mappings":";AAgBA,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClF,OAAO,EAAE,8BAA8B,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3F,8BACsB,2BAA4B,YAAW,mBAAmB;IAChD,SAAS,CAAC,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IACzD,SAAS,CAAC,QAAQ,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IACjE,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IAE1E,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAEpB,SAAS,CAAC,gBAAgB,gBAAuB;IACjD,QAAQ,CAAC,WAAW,oCAA+B;IAEnD,QAAQ,CAAC,MAAM,IAAI,KAAK,CAAC,SAAS;IAElC,MAAM,IAAI,8BAA8B;IAIxC,SAAS,CAAC,2BAA2B,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM;CAa/E"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2022 Ericsson and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.AbstractToolbarContribution = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const core_1 = require("@theia/core");
|
|
21
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
22
|
-
const browser_1 = require("@theia/core/lib/browser");
|
|
23
|
-
let AbstractToolbarContribution = class AbstractToolbarContribution {
|
|
24
|
-
constructor() {
|
|
25
|
-
this.didChangeEmitter = new core_1.Emitter();
|
|
26
|
-
this.onDidChange = this.didChangeEmitter.event;
|
|
27
|
-
}
|
|
28
|
-
toJSON() {
|
|
29
|
-
return { id: this.id, group: 'contributed' };
|
|
30
|
-
}
|
|
31
|
-
resolveKeybindingForCommand(commandID) {
|
|
32
|
-
if (!commandID) {
|
|
33
|
-
return '';
|
|
34
|
-
}
|
|
35
|
-
const keybindings = this.keybindingRegistry.getKeybindingsForCommand(commandID);
|
|
36
|
-
if (keybindings.length > 0) {
|
|
37
|
-
const binding = keybindings[0];
|
|
38
|
-
const bindingKeySequence = this.keybindingRegistry.resolveKeybinding(binding);
|
|
39
|
-
const keyCode = bindingKeySequence[0];
|
|
40
|
-
return ` (${this.keybindingRegistry.acceleratorForKeyCode(keyCode, '+')})`;
|
|
41
|
-
}
|
|
42
|
-
return '';
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
exports.AbstractToolbarContribution = AbstractToolbarContribution;
|
|
46
|
-
tslib_1.__decorate([
|
|
47
|
-
(0, inversify_1.inject)(browser_1.KeybindingRegistry),
|
|
48
|
-
tslib_1.__metadata("design:type", browser_1.KeybindingRegistry)
|
|
49
|
-
], AbstractToolbarContribution.prototype, "keybindingRegistry", void 0);
|
|
50
|
-
tslib_1.__decorate([
|
|
51
|
-
(0, inversify_1.inject)(browser_1.ContextMenuRenderer),
|
|
52
|
-
tslib_1.__metadata("design:type", browser_1.ContextMenuRenderer)
|
|
53
|
-
], AbstractToolbarContribution.prototype, "contextMenuRenderer", void 0);
|
|
54
|
-
tslib_1.__decorate([
|
|
55
|
-
(0, inversify_1.inject)(core_1.CommandService),
|
|
56
|
-
tslib_1.__metadata("design:type", Object)
|
|
57
|
-
], AbstractToolbarContribution.prototype, "commandService", void 0);
|
|
58
|
-
exports.AbstractToolbarContribution = AbstractToolbarContribution = tslib_1.__decorate([
|
|
59
|
-
(0, inversify_1.injectable)()
|
|
60
|
-
], AbstractToolbarContribution);
|
|
61
|
-
//# sourceMappingURL=abstract-toolbar-contribution.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstract-toolbar-contribution.js","sourceRoot":"","sources":["../../src/browser/abstract-toolbar-contribution.tsx"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAGhF,sCAAsD;AACtD,4DAAkE;AAClE,qDAAkF;AAI3E,IAAe,2BAA2B,GAA1C,MAAe,2BAA2B;IAA1C;QAOO,qBAAgB,GAAG,IAAI,cAAO,EAAQ,CAAC;QACxC,gBAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC;IAqBvD,CAAC;IAjBG,MAAM;QACF,OAAO,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC;IACjD,CAAC;IAES,2BAA2B,CAAC,SAA6B;QAC/D,IAAI,CAAC,SAAS,EAAE,CAAC;YACb,OAAO,EAAE,CAAC;QACd,CAAC;QACD,MAAM,WAAW,GAAG,IAAI,CAAC,kBAAkB,CAAC,wBAAwB,CAAC,SAAS,CAAC,CAAC;QAChF,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACzB,MAAM,OAAO,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;YAC/B,MAAM,kBAAkB,GAAG,IAAI,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;YAC9E,MAAM,OAAO,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC;YACtC,OAAO,KAAK,IAAI,CAAC,kBAAkB,CAAC,qBAAqB,CAAC,OAAO,EAAE,GAAG,CAAC,GAAG,CAAC;QAC/E,CAAC;QACD,OAAO,EAAE,CAAC;IACd,CAAC;CACJ,CAAA;AA7BqB,kEAA2B;AACE;IAA9C,IAAA,kBAAM,EAAC,4BAAkB,CAAC;sCAAwC,4BAAkB;uEAAC;AACtC;IAA/C,IAAA,kBAAM,EAAC,6BAAmB,CAAC;sCAAyC,6BAAmB;wEAAC;AAC9C;IAA1C,IAAA,kBAAM,EAAC,qBAAc,CAAC;;mEAAmD;sCAHxD,2BAA2B;IADhD,IAAA,sBAAU,GAAE;GACS,2BAA2B,CA6BhD"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ApplicationShell, Layout } from '@theia/core/lib/browser';
|
|
2
|
-
import { interfaces } from '@theia/core/shared/inversify';
|
|
3
|
-
import { Toolbar } from './toolbar-interfaces';
|
|
4
|
-
import { ToolbarPreferences } from '../common/toolbar-preference-contribution';
|
|
5
|
-
import { PreferenceService } from '@theia/core';
|
|
6
|
-
export declare class ApplicationShellWithToolbarOverride extends ApplicationShell {
|
|
7
|
-
protected toolbarPreferences: ToolbarPreferences;
|
|
8
|
-
protected readonly preferenceService: PreferenceService;
|
|
9
|
-
protected readonly toolbarFactory: () => Toolbar;
|
|
10
|
-
protected toolbar: Toolbar;
|
|
11
|
-
protected init(): void;
|
|
12
|
-
protected doInit(): Promise<void>;
|
|
13
|
-
protected tryShowToolbar(): boolean;
|
|
14
|
-
protected createLayout(): Layout;
|
|
15
|
-
}
|
|
16
|
-
export declare const bindToolbarApplicationShell: (bind: interfaces.Bind, rebind: interfaces.Rebind, unbind: interfaces.Unbind) => void;
|
|
17
|
-
//# sourceMappingURL=application-shell-with-toolbar-override.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"application-shell-with-toolbar-override.d.ts","sourceRoot":"","sources":["../../src/browser/application-shell-with-toolbar-override.ts"],"names":[],"mappings":"AAgBA,OAAO,EACH,gBAAgB,EAChB,MAAM,EAGT,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAsB,UAAU,EAAiB,MAAM,8BAA8B,CAAC;AAC7F,OAAO,EAAE,OAAO,EAAkB,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAgC,MAAM,2CAA2C,CAAC;AAC7G,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,qBACa,mCAAoC,SAAQ,gBAAgB;IACzC,SAAS,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAClD,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC3D,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,MAAM,OAAO,CAAC;IAEzE,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC;cAGR,IAAI,IAAI,IAAI;cAIf,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAiBvC,SAAS,CAAC,cAAc,IAAI,OAAO;cAWhB,YAAY,IAAI,MAAM;CAsB5C;AAED,eAAO,MAAM,2BAA2B,SAAU,WAAW,IAAI,UAAU,WAAW,MAAM,UAAU,WAAW,MAAM,KAAG,IAGzH,CAAC"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2022 Ericsson and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.bindToolbarApplicationShell = exports.ApplicationShellWithToolbarOverride = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const browser_1 = require("@theia/core/lib/browser");
|
|
21
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
22
|
-
const toolbar_interfaces_1 = require("./toolbar-interfaces");
|
|
23
|
-
const toolbar_preference_contribution_1 = require("../common/toolbar-preference-contribution");
|
|
24
|
-
const core_1 = require("@theia/core");
|
|
25
|
-
let ApplicationShellWithToolbarOverride = class ApplicationShellWithToolbarOverride extends browser_1.ApplicationShell {
|
|
26
|
-
init() {
|
|
27
|
-
this.doInit();
|
|
28
|
-
}
|
|
29
|
-
async doInit() {
|
|
30
|
-
this.toolbar = this.toolbarFactory();
|
|
31
|
-
this.toolbar.id = 'main-toolbar';
|
|
32
|
-
super.init();
|
|
33
|
-
await this.toolbarPreferences.ready;
|
|
34
|
-
this.tryShowToolbar();
|
|
35
|
-
this.onDidToggleMaximized(() => {
|
|
36
|
-
this.tryShowToolbar();
|
|
37
|
-
});
|
|
38
|
-
this.preferenceService.onPreferenceChanged(event => {
|
|
39
|
-
if (event.preferenceName === toolbar_preference_contribution_1.TOOLBAR_ENABLE_PREFERENCE_ID) {
|
|
40
|
-
this.tryShowToolbar();
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
tryShowToolbar() {
|
|
45
|
-
const doShowToolbarFromPreference = this.toolbarPreferences[toolbar_preference_contribution_1.TOOLBAR_ENABLE_PREFERENCE_ID];
|
|
46
|
-
const isShellMaximized = this.mainPanel.hasClass(browser_1.MAXIMIZED_CLASS) || this.bottomPanel.hasClass(browser_1.MAXIMIZED_CLASS);
|
|
47
|
-
if (doShowToolbarFromPreference && !isShellMaximized) {
|
|
48
|
-
this.toolbar.show();
|
|
49
|
-
return true;
|
|
50
|
-
}
|
|
51
|
-
this.toolbar.hide();
|
|
52
|
-
return false;
|
|
53
|
-
}
|
|
54
|
-
createLayout() {
|
|
55
|
-
const bottomSplitLayout = this.createSplitLayout([this.mainPanel, this.bottomPanel], [1, 0], { orientation: 'vertical', spacing: 0 });
|
|
56
|
-
const panelForBottomArea = new browser_1.TheiaSplitPanel({ layout: bottomSplitLayout });
|
|
57
|
-
panelForBottomArea.id = 'theia-bottom-split-panel';
|
|
58
|
-
const leftRightSplitLayout = this.createSplitLayout([this.leftPanelHandler.container, panelForBottomArea, this.rightPanelHandler.container], [0, 1, 0], { orientation: 'horizontal', spacing: 0 });
|
|
59
|
-
const panelForSideAreas = new browser_1.TheiaSplitPanel({ layout: leftRightSplitLayout });
|
|
60
|
-
panelForSideAreas.id = 'theia-left-right-split-panel';
|
|
61
|
-
return this.createBoxLayout([this.topPanel, this.toolbar, panelForSideAreas, this.statusBar], [0, 0, 1, 0], { direction: 'top-to-bottom', spacing: 0 });
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
exports.ApplicationShellWithToolbarOverride = ApplicationShellWithToolbarOverride;
|
|
65
|
-
tslib_1.__decorate([
|
|
66
|
-
(0, inversify_1.inject)(toolbar_preference_contribution_1.ToolbarPreferences),
|
|
67
|
-
tslib_1.__metadata("design:type", Object)
|
|
68
|
-
], ApplicationShellWithToolbarOverride.prototype, "toolbarPreferences", void 0);
|
|
69
|
-
tslib_1.__decorate([
|
|
70
|
-
(0, inversify_1.inject)(core_1.PreferenceService),
|
|
71
|
-
tslib_1.__metadata("design:type", Object)
|
|
72
|
-
], ApplicationShellWithToolbarOverride.prototype, "preferenceService", void 0);
|
|
73
|
-
tslib_1.__decorate([
|
|
74
|
-
(0, inversify_1.inject)(toolbar_interfaces_1.ToolbarFactory),
|
|
75
|
-
tslib_1.__metadata("design:type", Function)
|
|
76
|
-
], ApplicationShellWithToolbarOverride.prototype, "toolbarFactory", void 0);
|
|
77
|
-
tslib_1.__decorate([
|
|
78
|
-
(0, inversify_1.postConstruct)(),
|
|
79
|
-
tslib_1.__metadata("design:type", Function),
|
|
80
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
81
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
82
|
-
], ApplicationShellWithToolbarOverride.prototype, "init", null);
|
|
83
|
-
exports.ApplicationShellWithToolbarOverride = ApplicationShellWithToolbarOverride = tslib_1.__decorate([
|
|
84
|
-
(0, inversify_1.injectable)()
|
|
85
|
-
], ApplicationShellWithToolbarOverride);
|
|
86
|
-
const bindToolbarApplicationShell = (bind, rebind, unbind) => {
|
|
87
|
-
bind(ApplicationShellWithToolbarOverride).toSelf().inSingletonScope();
|
|
88
|
-
rebind(browser_1.ApplicationShell).toService(ApplicationShellWithToolbarOverride);
|
|
89
|
-
};
|
|
90
|
-
exports.bindToolbarApplicationShell = bindToolbarApplicationShell;
|
|
91
|
-
//# sourceMappingURL=application-shell-with-toolbar-override.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"application-shell-with-toolbar-override.js","sourceRoot":"","sources":["../../src/browser/application-shell-with-toolbar-override.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"codicons.d.ts","sourceRoot":"","sources":["../../src/browser/codicons.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,QAAQ,UAAm3U,CAAC"}
|
package/lib/browser/codicons.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2022 Ericsson and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.codicons = void 0;
|
|
19
|
-
/* eslint-disable @typescript-eslint/quotes, max-len */
|
|
20
|
-
exports.codicons = ["codicon-add", "codicon-plus", "codicon-gist-new", "codicon-repo-create", "codicon-lightbulb", "codicon-light-bulb", "codicon-repo", "codicon-repo-delete", "codicon-gist-fork", "codicon-repo-forked", "codicon-git-pull-request", "codicon-git-pull-request-abandoned", "codicon-record-keys", "codicon-keyboard", "codicon-tag", "codicon-tag-add", "codicon-tag-remove", "codicon-person", "codicon-person-follow", "codicon-person-outline", "codicon-person-filled", "codicon-git-branch", "codicon-git-branch-create", "codicon-git-branch-delete", "codicon-source-control", "codicon-mirror", "codicon-mirror-public", "codicon-star", "codicon-star-add", "codicon-star-delete", "codicon-star-empty", "codicon-comment", "codicon-comment-add", "codicon-alert", "codicon-warning", "codicon-search", "codicon-search-save", "codicon-log-out", "codicon-sign-out", "codicon-log-in", "codicon-sign-in", "codicon-eye", "codicon-eye-unwatch", "codicon-eye-watch", "codicon-circle-filled", "codicon-primitive-dot", "codicon-close-dirty", "codicon-debug-breakpoint", "codicon-debug-breakpoint-disabled", "codicon-debug-hint", "codicon-primitive-square", "codicon-edit", "codicon-pencil", "codicon-info", "codicon-issue-opened", "codicon-gist-private", "codicon-git-fork-private", "codicon-lock", "codicon-mirror-private", "codicon-close", "codicon-remove-close", "codicon-x", "codicon-repo-sync", "codicon-sync", "codicon-clone", "codicon-desktop-download", "codicon-beaker", "codicon-microscope", "codicon-vm", "codicon-device-desktop", "codicon-file", "codicon-file-text", "codicon-more", "codicon-ellipsis", "codicon-kebab-horizontal", "codicon-mail-reply", "codicon-reply", "codicon-organization", "codicon-organization-filled", "codicon-organization-outline", "codicon-new-file", "codicon-file-add", "codicon-new-folder", "codicon-file-directory-create", "codicon-trash", "codicon-trashcan", "codicon-history", "codicon-clock", "codicon-folder", "codicon-file-directory", "codicon-symbol-folder", "codicon-logo-github", "codicon-mark-github", "codicon-github", "codicon-terminal", "codicon-console", "codicon-repl", "codicon-zap", "codicon-symbol-event", "codicon-error", "codicon-stop", "codicon-variable", "codicon-symbol-variable", "codicon-array", "codicon-symbol-array", "codicon-symbol-module", "codicon-symbol-package", "codicon-symbol-namespace", "codicon-symbol-object", "codicon-symbol-method", "codicon-symbol-function", "codicon-symbol-constructor", "codicon-symbol-boolean", "codicon-symbol-null", "codicon-symbol-numeric", "codicon-symbol-number", "codicon-symbol-structure", "codicon-symbol-struct", "codicon-symbol-parameter", "codicon-symbol-type-parameter", "codicon-symbol-key", "codicon-symbol-text", "codicon-symbol-reference", "codicon-go-to-file", "codicon-symbol-enum", "codicon-symbol-value", "codicon-symbol-ruler", "codicon-symbol-unit", "codicon-activate-breakpoints", "codicon-archive", "codicon-arrow-both", "codicon-arrow-down", "codicon-arrow-left", "codicon-arrow-right", "codicon-arrow-small-down", "codicon-arrow-small-left", "codicon-arrow-small-right", "codicon-arrow-small-up", "codicon-arrow-up", "codicon-bell", "codicon-bold", "codicon-book", "codicon-bookmark", "codicon-debug-breakpoint-conditional-unverified", "codicon-debug-breakpoint-conditional", "codicon-debug-breakpoint-conditional-disabled", "codicon-debug-breakpoint-data-unverified", "codicon-debug-breakpoint-data", "codicon-debug-breakpoint-data-disabled", "codicon-debug-breakpoint-log-unverified", "codicon-debug-breakpoint-log", "codicon-debug-breakpoint-log-disabled", "codicon-briefcase", "codicon-broadcast", "codicon-browser", "codicon-bug", "codicon-calendar", "codicon-case-sensitive", "codicon-check", "codicon-checklist", "codicon-chevron-down", "codicon-chevron-left", "codicon-chevron-right", "codicon-chevron-up", "codicon-chrome-close", "codicon-chrome-maximize", "codicon-chrome-minimize", "codicon-chrome-restore", "codicon-circle-outline", "codicon-debug-breakpoint-unverified", "codicon-circle-slash", "codicon-circuit-board", "codicon-clear-all", "codicon-clippy", "codicon-close-all", "codicon-cloud-download", "codicon-cloud-upload", "codicon-code", "codicon-collapse-all", "codicon-color-mode", "codicon-comment-discussion", "codicon-credit-card", "codicon-dash", "codicon-dashboard", "codicon-database", "codicon-debug-continue", "codicon-debug-disconnect", "codicon-debug-pause", "codicon-debug-restart", "codicon-debug-start", "codicon-debug-step-into", "codicon-debug-step-out", "codicon-debug-step-over", "codicon-debug-stop", "codicon-debug", "codicon-device-camera-video", "codicon-device-camera", "codicon-device-mobile", "codicon-diff-added", "codicon-diff-ignored", "codicon-diff-modified", "codicon-diff-removed", "codicon-diff-renamed", "codicon-diff", "codicon-discard", "codicon-editor-layout", "codicon-empty-window", "codicon-exclude", "codicon-extensions", "codicon-eye-closed", "codicon-file-binary", "codicon-file-code", "codicon-file-media", "codicon-file-pdf", "codicon-file-submodule", "codicon-file-symlink-directory", "codicon-file-symlink-file", "codicon-file-zip", "codicon-files", "codicon-filter", "codicon-flame", "codicon-fold-down", "codicon-fold-up", "codicon-fold", "codicon-folder-active", "codicon-folder-opened", "codicon-gear", "codicon-gift", "codicon-gist-secret", "codicon-gist", "codicon-git-commit", "codicon-git-compare", "codicon-compare-changes", "codicon-git-merge", "codicon-github-action", "codicon-github-alt", "codicon-globe", "codicon-grabber", "codicon-graph", "codicon-gripper", "codicon-heart", "codicon-home", "codicon-horizontal-rule", "codicon-hubot", "codicon-inbox", "codicon-issue-reopened", "codicon-issues", "codicon-italic", "codicon-jersey", "codicon-json", "codicon-kebab-vertical", "codicon-key", "codicon-law", "codicon-lightbulb-autofix", "codicon-link-external", "codicon-link", "codicon-list-ordered", "codicon-list-unordered", "codicon-live-share", "codicon-loading", "codicon-location", "codicon-mail-read", "codicon-mail", "codicon-markdown", "codicon-megaphone", "codicon-mention", "codicon-milestone", "codicon-mortar-board", "codicon-move", "codicon-multiple-windows", "codicon-mute", "codicon-no-newline", "codicon-note", "codicon-octoface", "codicon-open-preview", "codicon-package", "codicon-paintcan", "codicon-pin", "codicon-play", "codicon-run", "codicon-plug", "codicon-preserve-case", "codicon-preview", "codicon-project", "codicon-pulse", "codicon-question", "codicon-quote", "codicon-radio-tower", "codicon-reactions", "codicon-references", "codicon-refresh", "codicon-regex", "codicon-remote-explorer", "codicon-remote", "codicon-remove", "codicon-replace-all", "codicon-replace", "codicon-repo-clone", "codicon-repo-force-push", "codicon-repo-pull", "codicon-repo-push", "codicon-report", "codicon-request-changes", "codicon-rocket", "codicon-root-folder-opened", "codicon-root-folder", "codicon-rss", "codicon-ruby", "codicon-save-all", "codicon-save-as", "codicon-save", "codicon-screen-full", "codicon-screen-normal", "codicon-search-stop", "codicon-server", "codicon-settings-gear", "codicon-settings", "codicon-shield", "codicon-smiley", "codicon-sort-precedence", "codicon-split-horizontal", "codicon-split-vertical", "codicon-squirrel", "codicon-star-full", "codicon-star-half", "codicon-symbol-class", "codicon-symbol-color", "codicon-symbol-constant", "codicon-symbol-enum-member", "codicon-symbol-field", "codicon-symbol-file", "codicon-symbol-interface", "codicon-symbol-keyword", "codicon-symbol-misc", "codicon-symbol-operator", "codicon-symbol-property", "codicon-wrench", "codicon-wrench-subaction", "codicon-symbol-snippet", "codicon-tasklist", "codicon-telescope", "codicon-text-size", "codicon-three-bars", "codicon-thumbsdown", "codicon-thumbsup", "codicon-tools", "codicon-triangle-down", "codicon-triangle-left", "codicon-triangle-right", "codicon-triangle-up", "codicon-twitter", "codicon-unfold", "codicon-unlock", "codicon-unmute", "codicon-unverified", "codicon-verified", "codicon-versions", "codicon-vm-active", "codicon-vm-outline", "codicon-vm-running", "codicon-watch", "codicon-whitespace", "codicon-whole-word", "codicon-window", "codicon-word-wrap", "codicon-zoom-in", "codicon-zoom-out", "codicon-list-filter", "codicon-list-flat", "codicon-list-selection", "codicon-selection", "codicon-list-tree", "codicon-debug-breakpoint-function-unverified", "codicon-debug-breakpoint-function", "codicon-debug-breakpoint-function-disabled", "codicon-debug-stackframe-active", "codicon-debug-stackframe-dot", "codicon-debug-stackframe", "codicon-debug-stackframe-focused", "codicon-debug-breakpoint-unsupported", "codicon-symbol-string", "codicon-debug-reverse-continue", "codicon-debug-step-back", "codicon-debug-restart-frame", "codicon-debug-alt", "codicon-call-incoming", "codicon-call-outgoing", "codicon-menu", "codicon-expand-all", "codicon-feedback", "codicon-group-by-ref-type", "codicon-ungroup-by-ref-type", "codicon-account", "codicon-bell-dot", "codicon-debug-console", "codicon-library", "codicon-output", "codicon-run-all", "codicon-sync-ignored", "codicon-pinned", "codicon-github-inverted", "codicon-server-process", "codicon-server-environment", "codicon-pass", "codicon-issue-closed", "codicon-stop-circle", "codicon-play-circle", "codicon-record", "codicon-debug-alt-small", "codicon-vm-connect", "codicon-cloud", "codicon-merge", "codicon-export", "codicon-graph-left", "codicon-magnet", "codicon-notebook", "codicon-redo", "codicon-check-all", "codicon-pinned-dirty", "codicon-pass-filled", "codicon-circle-large-filled", "codicon-circle-large-outline", "codicon-combine", "codicon-gather", "codicon-table", "codicon-variable-group", "codicon-type-hierarchy", "codicon-type-hierarchy-sub", "codicon-type-hierarchy-super", "codicon-git-pull-request-create", "codicon-run-above", "codicon-run-below", "codicon-notebook-template", "codicon-debug-rerun", "codicon-workspace-trusted", "codicon-workspace-untrusted", "codicon-workspace-unknown", "codicon-terminal-cmd", "codicon-terminal-debian", "codicon-terminal-linux", "codicon-terminal-powershell", "codicon-terminal-tmux", "codicon-terminal-ubuntu", "codicon-terminal-bash", "codicon-arrow-swap", "codicon-copy", "codicon-person-add", "codicon-filter-filled", "codicon-wand", "codicon-debug-line-by-line", "codicon-inspect", "codicon-layers", "codicon-layers-dot", "codicon-layers-active", "codicon-compass", "codicon-compass-dot", "codicon-compass-active", "codicon-azure", "codicon-issue-draft", "codicon-git-pull-request-closed", "codicon-git-pull-request-draft", "codicon-debug-all", "codicon-debug-coverage"];
|
|
21
|
-
//# sourceMappingURL=codicons.js.map
|