@theia/keymaps 1.45.1 → 1.46.0-next.72
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 +61 -61
- package/lib/browser/index.d.ts +3 -3
- package/lib/browser/index.js +30 -30
- package/lib/browser/keybinding-schema-updater.d.ts +85 -85
- package/lib/browser/keybinding-schema-updater.js +116 -116
- package/lib/browser/keybindings-widget.d.ts +275 -275
- package/lib/browser/keybindings-widget.js +824 -824
- package/lib/browser/keymaps-frontend-contribution.d.ts +37 -37
- package/lib/browser/keymaps-frontend-contribution.js +294 -294
- package/lib/browser/keymaps-frontend-module.d.ts +5 -5
- package/lib/browser/keymaps-frontend-module.js +44 -44
- package/lib/browser/keymaps-monaco-contribution.d.ts +1 -1
- package/lib/browser/keymaps-monaco-contribution.js +27 -27
- package/lib/browser/keymaps-service.d.ts +61 -61
- package/lib/browser/keymaps-service.js +231 -231
- package/lib/package.spec.js +25 -25
- package/package.json +8 -8
- package/src/browser/index.ts +19 -19
- package/src/browser/keybinding-schema-updater.ts +95 -95
- package/src/browser/keybindings-widget.tsx +953 -953
- package/src/browser/keymaps-frontend-contribution.ts +296 -296
- package/src/browser/keymaps-frontend-module.ts +44 -44
- package/src/browser/keymaps-monaco-contribution.ts +26 -26
- package/src/browser/keymaps-service.ts +214 -214
- package/src/browser/style/index.css +182 -182
- package/src/package.spec.ts +28 -28
|
@@ -1,182 +1,182 @@
|
|
|
1
|
-
/********************************************************************************
|
|
2
|
-
* Copyright (C) 2018 Ericsson and others.
|
|
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
|
-
#kb-main-container {
|
|
18
|
-
display: flex;
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
height: 100%;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
#kb-table-container {
|
|
24
|
-
flex: 1;
|
|
25
|
-
overflow: auto;
|
|
26
|
-
user-select: none;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.fuzzy-match {
|
|
30
|
-
font-weight: 600;
|
|
31
|
-
color: var(--theia-list-highlightForeground);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.kb-actions {
|
|
35
|
-
text-align: center;
|
|
36
|
-
vertical-align: middle;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.kb-action-item {
|
|
40
|
-
visibility: hidden;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.kb table {
|
|
44
|
-
border-spacing: 0;
|
|
45
|
-
border-collapse: separate;
|
|
46
|
-
background-color: var(--theia-editor-background);
|
|
47
|
-
width: 100%;
|
|
48
|
-
table-layout: fixed;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.kb table tr {
|
|
52
|
-
min-height: var(--theia-icon-size);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.th-action,
|
|
56
|
-
.th-keybinding,
|
|
57
|
-
.kb-actions,
|
|
58
|
-
.kb-keybinding {
|
|
59
|
-
min-height: 18px;
|
|
60
|
-
overflow: hidden;
|
|
61
|
-
vertical-align: middle;
|
|
62
|
-
white-space: nowrap;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.th-action,
|
|
66
|
-
.kb-actions {
|
|
67
|
-
padding: 2px 0px 5px 0px;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.th-keybinding,
|
|
71
|
-
.kb-keybinding {
|
|
72
|
-
padding: 2px 10px 5px 10px;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.th-label,
|
|
76
|
-
.th-source,
|
|
77
|
-
.th-context,
|
|
78
|
-
.th-keybinding,
|
|
79
|
-
.kb-label,
|
|
80
|
-
.kb-source,
|
|
81
|
-
.kb-context {
|
|
82
|
-
padding: 2px 10px 5px 10px;
|
|
83
|
-
min-height: 18px;
|
|
84
|
-
overflow: hidden;
|
|
85
|
-
text-overflow: ellipsis;
|
|
86
|
-
vertical-align: middle;
|
|
87
|
-
white-space: nowrap;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.kb table th {
|
|
91
|
-
font-size: var(--theia-ui-font-size1);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.kb table td code {
|
|
95
|
-
font-size: 90%;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.td-source {
|
|
99
|
-
text-transform: lowercase;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.kb table tr:nth-child(odd) {
|
|
103
|
-
background-color: rgba(130, 130, 130, 0.04);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.kb table tbody tr:hover {
|
|
107
|
-
background-color: var(--theia-list-hoverBackground);
|
|
108
|
-
color: var(--theia-list-hoverForeground);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.kb table tbody tr.theia-mod-selected {
|
|
112
|
-
background-color: var(--theia-list-inactiveSelectionBackground);
|
|
113
|
-
color: var(--theia-list-inactiveSelectionForeground);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.kb table tbody tr:hover .kb-action-item,
|
|
117
|
-
.kb table tbody tr.theia-mod-selected .kb-action-item {
|
|
118
|
-
visibility: visible;
|
|
119
|
-
color: var(--theia-icon-foreground);
|
|
120
|
-
text-decoration: none;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.kb table th {
|
|
124
|
-
word-break: keep-all;
|
|
125
|
-
padding-bottom: 5px;
|
|
126
|
-
padding-top: 5px;
|
|
127
|
-
text-align: left;
|
|
128
|
-
vertical-align: middle;
|
|
129
|
-
position: sticky;
|
|
130
|
-
top: 0;
|
|
131
|
-
background-color: var(--theia-editorWidget-background);
|
|
132
|
-
text-transform: capitalize;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.kb table .th-action {
|
|
136
|
-
width: 4%;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.kb table .th-label {
|
|
140
|
-
width: 25%;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.kb table .th-keybinding {
|
|
144
|
-
width: 20%;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.kb table .th-source {
|
|
148
|
-
width: 10%;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.kb table .th-context {
|
|
152
|
-
width: 25%;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.no-kb {
|
|
156
|
-
border: 1px solid var(--theia-editorWarning-foreground);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
#search-kb {
|
|
160
|
-
height: 25px;
|
|
161
|
-
flex: 1;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.vs #search-kb {
|
|
165
|
-
border: 1px solid #ddd;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.search-kb-container {
|
|
169
|
-
padding: 10px;
|
|
170
|
-
display: flex;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.kb-item-row td a,
|
|
174
|
-
.kb-item-row td a:active,
|
|
175
|
-
.kb-item-row td a:focus {
|
|
176
|
-
outline: 0;
|
|
177
|
-
border: none;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.kb-actions-icons {
|
|
181
|
-
display: block;
|
|
182
|
-
}
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (C) 2018 Ericsson and others.
|
|
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
|
+
#kb-main-container {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
height: 100%;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
#kb-table-container {
|
|
24
|
+
flex: 1;
|
|
25
|
+
overflow: auto;
|
|
26
|
+
user-select: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.fuzzy-match {
|
|
30
|
+
font-weight: 600;
|
|
31
|
+
color: var(--theia-list-highlightForeground);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.kb-actions {
|
|
35
|
+
text-align: center;
|
|
36
|
+
vertical-align: middle;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.kb-action-item {
|
|
40
|
+
visibility: hidden;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.kb table {
|
|
44
|
+
border-spacing: 0;
|
|
45
|
+
border-collapse: separate;
|
|
46
|
+
background-color: var(--theia-editor-background);
|
|
47
|
+
width: 100%;
|
|
48
|
+
table-layout: fixed;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.kb table tr {
|
|
52
|
+
min-height: var(--theia-icon-size);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.th-action,
|
|
56
|
+
.th-keybinding,
|
|
57
|
+
.kb-actions,
|
|
58
|
+
.kb-keybinding {
|
|
59
|
+
min-height: 18px;
|
|
60
|
+
overflow: hidden;
|
|
61
|
+
vertical-align: middle;
|
|
62
|
+
white-space: nowrap;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.th-action,
|
|
66
|
+
.kb-actions {
|
|
67
|
+
padding: 2px 0px 5px 0px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.th-keybinding,
|
|
71
|
+
.kb-keybinding {
|
|
72
|
+
padding: 2px 10px 5px 10px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.th-label,
|
|
76
|
+
.th-source,
|
|
77
|
+
.th-context,
|
|
78
|
+
.th-keybinding,
|
|
79
|
+
.kb-label,
|
|
80
|
+
.kb-source,
|
|
81
|
+
.kb-context {
|
|
82
|
+
padding: 2px 10px 5px 10px;
|
|
83
|
+
min-height: 18px;
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
text-overflow: ellipsis;
|
|
86
|
+
vertical-align: middle;
|
|
87
|
+
white-space: nowrap;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.kb table th {
|
|
91
|
+
font-size: var(--theia-ui-font-size1);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.kb table td code {
|
|
95
|
+
font-size: 90%;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.td-source {
|
|
99
|
+
text-transform: lowercase;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.kb table tr:nth-child(odd) {
|
|
103
|
+
background-color: rgba(130, 130, 130, 0.04);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.kb table tbody tr:hover {
|
|
107
|
+
background-color: var(--theia-list-hoverBackground);
|
|
108
|
+
color: var(--theia-list-hoverForeground);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.kb table tbody tr.theia-mod-selected {
|
|
112
|
+
background-color: var(--theia-list-inactiveSelectionBackground);
|
|
113
|
+
color: var(--theia-list-inactiveSelectionForeground);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.kb table tbody tr:hover .kb-action-item,
|
|
117
|
+
.kb table tbody tr.theia-mod-selected .kb-action-item {
|
|
118
|
+
visibility: visible;
|
|
119
|
+
color: var(--theia-icon-foreground);
|
|
120
|
+
text-decoration: none;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.kb table th {
|
|
124
|
+
word-break: keep-all;
|
|
125
|
+
padding-bottom: 5px;
|
|
126
|
+
padding-top: 5px;
|
|
127
|
+
text-align: left;
|
|
128
|
+
vertical-align: middle;
|
|
129
|
+
position: sticky;
|
|
130
|
+
top: 0;
|
|
131
|
+
background-color: var(--theia-editorWidget-background);
|
|
132
|
+
text-transform: capitalize;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.kb table .th-action {
|
|
136
|
+
width: 4%;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.kb table .th-label {
|
|
140
|
+
width: 25%;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.kb table .th-keybinding {
|
|
144
|
+
width: 20%;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.kb table .th-source {
|
|
148
|
+
width: 10%;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.kb table .th-context {
|
|
152
|
+
width: 25%;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.no-kb {
|
|
156
|
+
border: 1px solid var(--theia-editorWarning-foreground);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
#search-kb {
|
|
160
|
+
height: 25px;
|
|
161
|
+
flex: 1;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.vs #search-kb {
|
|
165
|
+
border: 1px solid #ddd;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.search-kb-container {
|
|
169
|
+
padding: 10px;
|
|
170
|
+
display: flex;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.kb-item-row td a,
|
|
174
|
+
.kb-item-row td a:active,
|
|
175
|
+
.kb-item-row td a:focus {
|
|
176
|
+
outline: 0;
|
|
177
|
+
border: none;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.kb-actions-icons {
|
|
181
|
+
display: block;
|
|
182
|
+
}
|
package/src/package.spec.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
// *****************************************************************************
|
|
2
|
-
// Copyright (C) 2017 Ericsson and others.
|
|
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
|
-
/* note: this bogus test file is required so that
|
|
18
|
-
we are able to run mocha unit tests on this
|
|
19
|
-
package, without having any actual unit tests in it.
|
|
20
|
-
This way a coverage report will be generated,
|
|
21
|
-
showing 0% coverage, instead of no report.
|
|
22
|
-
This file can be removed once we have real unit
|
|
23
|
-
tests in place. */
|
|
24
|
-
|
|
25
|
-
describe('keymaps package', () => {
|
|
26
|
-
|
|
27
|
-
it('support code coverage statistics', () => true);
|
|
28
|
-
});
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2017 Ericsson and others.
|
|
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
|
+
/* note: this bogus test file is required so that
|
|
18
|
+
we are able to run mocha unit tests on this
|
|
19
|
+
package, without having any actual unit tests in it.
|
|
20
|
+
This way a coverage report will be generated,
|
|
21
|
+
showing 0% coverage, instead of no report.
|
|
22
|
+
This file can be removed once we have real unit
|
|
23
|
+
tests in place. */
|
|
24
|
+
|
|
25
|
+
describe('keymaps package', () => {
|
|
26
|
+
|
|
27
|
+
it('support code coverage statistics', () => true);
|
|
28
|
+
});
|