@theia/monaco 1.34.2 → 1.34.3
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/LICENSE +641 -641
- package/README.md +100 -100
- package/data/monaco-nls.json +1379 -1379
- package/data/monaco-themes/vscode/dark_plus.json +201 -201
- package/data/monaco-themes/vscode/dark_theia.json +5 -5
- package/data/monaco-themes/vscode/dark_vs.json +392 -392
- package/data/monaco-themes/vscode/hc_black.json +457 -457
- package/data/monaco-themes/vscode/hc_light.json +590 -590
- package/data/monaco-themes/vscode/hc_theia.json +5 -5
- package/data/monaco-themes/vscode/hc_theia_light.json +5 -5
- package/data/monaco-themes/vscode/light_plus.json +202 -202
- package/data/monaco-themes/vscode/light_theia.json +10 -10
- package/data/monaco-themes/vscode/light_vs.json +421 -421
- package/lib/browser/index.d.ts +1 -1
- package/lib/browser/index.js +28 -28
- package/lib/browser/markdown-renderer/monaco-markdown-renderer.d.ts +24 -24
- package/lib/browser/markdown-renderer/monaco-markdown-renderer.js +137 -137
- package/lib/browser/monaco-bulk-edit-service.d.ts +14 -14
- package/lib/browser/monaco-bulk-edit-service.js +66 -66
- package/lib/browser/monaco-color-registry.d.ts +16 -16
- package/lib/browser/monaco-color-registry.js +82 -82
- package/lib/browser/monaco-command-registry.d.ts +19 -19
- package/lib/browser/monaco-command-registry.js +82 -82
- package/lib/browser/monaco-command-service.d.ts +26 -26
- package/lib/browser/monaco-command-service.js +92 -92
- package/lib/browser/monaco-command.d.ts +94 -94
- package/lib/browser/monaco-command.js +306 -306
- package/lib/browser/monaco-context-key-service.d.ts +22 -22
- package/lib/browser/monaco-context-key-service.js +147 -147
- package/lib/browser/monaco-context-menu.d.ts +16 -16
- package/lib/browser/monaco-context-menu.js +102 -102
- package/lib/browser/monaco-diagnostic-collection.d.ts +28 -28
- package/lib/browser/monaco-diagnostic-collection.js +86 -86
- package/lib/browser/monaco-diff-editor.d.ts +29 -29
- package/lib/browser/monaco-diff-editor.js +74 -74
- package/lib/browser/monaco-diff-navigator-factory.d.ts +7 -7
- package/lib/browser/monaco-diff-navigator-factory.js +66 -66
- package/lib/browser/monaco-editor-model.d.ts +156 -156
- package/lib/browser/monaco-editor-model.js +555 -555
- package/lib/browser/monaco-editor-provider.d.ts +89 -89
- package/lib/browser/monaco-editor-provider.js +440 -440
- package/lib/browser/monaco-editor-service.d.ts +27 -27
- package/lib/browser/monaco-editor-service.js +151 -151
- package/lib/browser/monaco-editor-zone-widget.d.ts +43 -43
- package/lib/browser/monaco-editor-zone-widget.js +194 -194
- package/lib/browser/monaco-editor.d.ts +151 -151
- package/lib/browser/monaco-editor.js +497 -497
- package/lib/browser/monaco-formatting-conflicts.d.ts +13 -13
- package/lib/browser/monaco-formatting-conflicts.js +110 -110
- package/lib/browser/monaco-frontend-application-contribution.d.ts +26 -26
- package/lib/browser/monaco-frontend-application-contribution.js +201 -201
- package/lib/browser/monaco-frontend-module.d.ts +7 -7
- package/lib/browser/monaco-frontend-module.js +266 -266
- package/lib/browser/monaco-gotoline-quick-access.d.ts +11 -11
- package/lib/browser/monaco-gotoline-quick-access.js +64 -64
- package/lib/browser/monaco-gotosymbol-quick-access.d.ts +16 -16
- package/lib/browser/monaco-gotosymbol-quick-access.js +70 -70
- package/lib/browser/monaco-indexed-db.d.ts +28 -28
- package/lib/browser/monaco-indexed-db.js +131 -131
- package/lib/browser/monaco-keybinding-contexts.d.ts +15 -15
- package/lib/browser/monaco-keybinding-contexts.js +50 -50
- package/lib/browser/monaco-keybinding.d.ts +16 -16
- package/lib/browser/monaco-keybinding.js +134 -134
- package/lib/browser/monaco-keycode-map.d.ts +2 -2
- package/lib/browser/monaco-keycode-map.js +163 -163
- package/lib/browser/monaco-languages.d.ts +27 -27
- package/lib/browser/monaco-languages.js +136 -136
- package/lib/browser/monaco-menu.d.ts +20 -20
- package/lib/browser/monaco-menu.js +145 -145
- package/lib/browser/monaco-mime-service.d.ts +10 -10
- package/lib/browser/monaco-mime-service.js +78 -78
- package/lib/browser/monaco-outline-contribution.d.ts +78 -78
- package/lib/browser/monaco-outline-contribution.js +384 -384
- package/lib/browser/monaco-outline-decorator.d.ts +12 -12
- package/lib/browser/monaco-outline-decorator.js +67 -67
- package/lib/browser/monaco-quick-access-registry.d.ts +11 -11
- package/lib/browser/monaco-quick-access-registry.js +99 -99
- package/lib/browser/monaco-quick-input-service.d.ts +99 -99
- package/lib/browser/monaco-quick-input-service.js +555 -555
- package/lib/browser/monaco-resolved-keybinding.d.ts +23 -23
- package/lib/browser/monaco-resolved-keybinding.js +131 -131
- package/lib/browser/monaco-snippet-suggest-provider.d.ts +64 -64
- package/lib/browser/monaco-snippet-suggest-provider.js +269 -269
- package/lib/browser/monaco-status-bar-contribution.d.ts +17 -17
- package/lib/browser/monaco-status-bar-contribution.js +120 -120
- package/lib/browser/monaco-text-model-service.d.ts +51 -51
- package/lib/browser/monaco-text-model-service.js +184 -184
- package/lib/browser/monaco-theming-service.d.ts +67 -67
- package/lib/browser/monaco-theming-service.js +171 -171
- package/lib/browser/monaco-to-protocol-converter.d.ts +26 -26
- package/lib/browser/monaco-to-protocol-converter.js +61 -61
- package/lib/browser/monaco-workspace.d.ts +83 -83
- package/lib/browser/monaco-workspace.js +369 -369
- package/lib/browser/protocol-to-monaco-converter.d.ts +31 -31
- package/lib/browser/protocol-to-monaco-converter.js +133 -133
- package/lib/browser/textmate/index.d.ts +4 -4
- package/lib/browser/textmate/index.js +31 -31
- package/lib/browser/textmate/monaco-textmate-frontend-bindings.d.ts +12 -12
- package/lib/browser/textmate/monaco-textmate-frontend-bindings.js +94 -94
- package/lib/browser/textmate/monaco-textmate-service.d.ts +30 -30
- package/lib/browser/textmate/monaco-textmate-service.js +185 -185
- package/lib/browser/textmate/monaco-theme-registry.d.ts +27 -27
- package/lib/browser/textmate/monaco-theme-registry.js +171 -171
- package/lib/browser/textmate/monaco-theme-types.d.ts +20 -20
- package/lib/browser/textmate/monaco-theme-types.js +21 -21
- package/lib/browser/textmate/textmate-contribution.d.ts +9 -9
- package/lib/browser/textmate/textmate-contribution.js +27 -27
- package/lib/browser/textmate/textmate-registry.d.ts +31 -31
- package/lib/browser/textmate/textmate-registry.js +109 -109
- package/lib/browser/textmate/textmate-snippet-completion-provider.d.ts +26 -26
- package/lib/browser/textmate/textmate-snippet-completion-provider.js +53 -53
- package/lib/browser/textmate/textmate-tokenizer.d.ts +22 -22
- package/lib/browser/textmate/textmate-tokenizer.js +65 -65
- package/lib/browser/workspace-symbol-command.d.ts +55 -55
- package/lib/browser/workspace-symbol-command.js +215 -215
- package/lib/package.spec.js +25 -25
- package/package.json +8 -8
- package/src/browser/index.ts +17 -17
- package/src/browser/markdown-renderer/monaco-markdown-renderer.ts +117 -117
- package/src/browser/monaco-bulk-edit-service.ts +64 -64
- package/src/browser/monaco-color-registry.ts +73 -73
- package/src/browser/monaco-command-registry.ts +82 -82
- package/src/browser/monaco-command-service.ts +99 -99
- package/src/browser/monaco-command.ts +311 -311
- package/src/browser/monaco-context-key-service.ts +143 -143
- package/src/browser/monaco-context-menu.ts +90 -90
- package/src/browser/monaco-diagnostic-collection.ts +101 -101
- package/src/browser/monaco-diff-editor.ts +101 -101
- package/src/browser/monaco-diff-navigator-factory.ts +61 -61
- package/src/browser/monaco-editor-model.ts +681 -681
- package/src/browser/monaco-editor-provider.ts +452 -452
- package/src/browser/monaco-editor-service.ts +144 -144
- package/src/browser/monaco-editor-zone-widget.ts +250 -250
- package/src/browser/monaco-editor.ts +644 -644
- package/src/browser/monaco-formatting-conflicts.ts +115 -115
- package/src/browser/monaco-frontend-application-contribution.ts +188 -188
- package/src/browser/monaco-frontend-module.ts +314 -314
- package/src/browser/monaco-gotoline-quick-access.ts +47 -47
- package/src/browser/monaco-gotosymbol-quick-access.ts +53 -53
- package/src/browser/monaco-indexed-db.ts +130 -130
- package/src/browser/monaco-keybinding-contexts.ts +43 -43
- package/src/browser/monaco-keybinding.ts +111 -111
- package/src/browser/monaco-keycode-map.ts +171 -171
- package/src/browser/monaco-languages.ts +129 -129
- package/src/browser/monaco-menu.ts +142 -142
- package/src/browser/monaco-mime-service.ts +71 -71
- package/src/browser/monaco-outline-contribution.ts +404 -404
- package/src/browser/monaco-outline-decorator.ts +66 -66
- package/src/browser/monaco-quick-access-registry.ts +112 -112
- package/src/browser/monaco-quick-input-service.ts +651 -651
- package/src/browser/monaco-resolved-keybinding.ts +162 -162
- package/src/browser/monaco-snippet-suggest-provider.ts +300 -300
- package/src/browser/monaco-status-bar-contribution.ts +109 -109
- package/src/browser/monaco-text-model-service.ts +194 -194
- package/src/browser/monaco-theming-service.ts +204 -204
- package/src/browser/monaco-to-protocol-converter.ts +71 -71
- package/src/browser/monaco-workspace.ts +393 -393
- package/src/browser/protocol-to-monaco-converter.ts +158 -158
- package/src/browser/style/index.css +267 -267
- package/src/browser/textmate/index.ts +20 -20
- package/src/browser/textmate/monaco-textmate-frontend-bindings.ts +94 -94
- package/src/browser/textmate/monaco-textmate-service.ts +187 -187
- package/src/browser/textmate/monaco-theme-registry.ts +176 -176
- package/src/browser/textmate/monaco-theme-types.ts +37 -37
- package/src/browser/textmate/textmate-contribution.ts +29 -29
- package/src/browser/textmate/textmate-registry.ts +129 -129
- package/src/browser/textmate/textmate-snippet-completion-provider.ts +73 -73
- package/src/browser/textmate/textmate-tokenizer.ts +84 -84
- package/src/browser/workspace-symbol-command.ts +196 -196
- package/src/package.spec.ts +28 -28
|
@@ -1,164 +1,164 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2017 TypeFox 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 WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
/*---------------------------------------------------------------------------------------------
|
|
18
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
19
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
20
|
-
*--------------------------------------------------------------------------------------------*/
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.KEY_CODE_MAP = void 0;
|
|
23
|
-
const browser = require("@theia/core/lib/browser");
|
|
24
|
-
const MonacoPlatform = require("@theia/monaco-editor-core/esm/vs/base/common/platform");
|
|
25
|
-
exports.KEY_CODE_MAP = [];
|
|
26
|
-
(function () {
|
|
27
|
-
exports.KEY_CODE_MAP[3] = 7 /* PauseBreak */; // VK_CANCEL 0x03 Control-break processing
|
|
28
|
-
exports.KEY_CODE_MAP[8] = 1 /* Backspace */;
|
|
29
|
-
exports.KEY_CODE_MAP[9] = 2 /* Tab */;
|
|
30
|
-
exports.KEY_CODE_MAP[13] = 3 /* Enter */;
|
|
31
|
-
exports.KEY_CODE_MAP[16] = 4 /* Shift */;
|
|
32
|
-
exports.KEY_CODE_MAP[17] = 5 /* Ctrl */;
|
|
33
|
-
exports.KEY_CODE_MAP[18] = 6 /* Alt */;
|
|
34
|
-
exports.KEY_CODE_MAP[19] = 7 /* PauseBreak */;
|
|
35
|
-
exports.KEY_CODE_MAP[20] = 8 /* CapsLock */;
|
|
36
|
-
exports.KEY_CODE_MAP[27] = 9 /* Escape */;
|
|
37
|
-
exports.KEY_CODE_MAP[32] = 10 /* Space */;
|
|
38
|
-
exports.KEY_CODE_MAP[33] = 11 /* PageUp */;
|
|
39
|
-
exports.KEY_CODE_MAP[34] = 12 /* PageDown */;
|
|
40
|
-
exports.KEY_CODE_MAP[35] = 13 /* End */;
|
|
41
|
-
exports.KEY_CODE_MAP[36] = 14 /* Home */;
|
|
42
|
-
exports.KEY_CODE_MAP[37] = 15 /* LeftArrow */;
|
|
43
|
-
exports.KEY_CODE_MAP[38] = 16 /* UpArrow */;
|
|
44
|
-
exports.KEY_CODE_MAP[39] = 17 /* RightArrow */;
|
|
45
|
-
exports.KEY_CODE_MAP[40] = 18 /* DownArrow */;
|
|
46
|
-
exports.KEY_CODE_MAP[45] = 19 /* Insert */;
|
|
47
|
-
exports.KEY_CODE_MAP[46] = 20 /* Delete */;
|
|
48
|
-
exports.KEY_CODE_MAP[48] = 21 /* Digit0 */;
|
|
49
|
-
exports.KEY_CODE_MAP[49] = 22 /* Digit1 */;
|
|
50
|
-
exports.KEY_CODE_MAP[50] = 23 /* Digit2 */;
|
|
51
|
-
exports.KEY_CODE_MAP[51] = 24 /* Digit3 */;
|
|
52
|
-
exports.KEY_CODE_MAP[52] = 25 /* Digit4 */;
|
|
53
|
-
exports.KEY_CODE_MAP[53] = 26 /* Digit5 */;
|
|
54
|
-
exports.KEY_CODE_MAP[54] = 27 /* Digit6 */;
|
|
55
|
-
exports.KEY_CODE_MAP[55] = 28 /* Digit7 */;
|
|
56
|
-
exports.KEY_CODE_MAP[56] = 29 /* Digit8 */;
|
|
57
|
-
exports.KEY_CODE_MAP[57] = 30 /* Digit9 */;
|
|
58
|
-
exports.KEY_CODE_MAP[65] = 31 /* KeyA */;
|
|
59
|
-
exports.KEY_CODE_MAP[66] = 32 /* KeyB */;
|
|
60
|
-
exports.KEY_CODE_MAP[67] = 33 /* KeyC */;
|
|
61
|
-
exports.KEY_CODE_MAP[68] = 34 /* KeyD */;
|
|
62
|
-
exports.KEY_CODE_MAP[69] = 35 /* KeyE */;
|
|
63
|
-
exports.KEY_CODE_MAP[70] = 36 /* KeyF */;
|
|
64
|
-
exports.KEY_CODE_MAP[71] = 37 /* KeyG */;
|
|
65
|
-
exports.KEY_CODE_MAP[72] = 38 /* KeyH */;
|
|
66
|
-
exports.KEY_CODE_MAP[73] = 39 /* KeyI */;
|
|
67
|
-
exports.KEY_CODE_MAP[74] = 40 /* KeyJ */;
|
|
68
|
-
exports.KEY_CODE_MAP[75] = 41 /* KeyK */;
|
|
69
|
-
exports.KEY_CODE_MAP[76] = 42 /* KeyL */;
|
|
70
|
-
exports.KEY_CODE_MAP[77] = 43 /* KeyM */;
|
|
71
|
-
exports.KEY_CODE_MAP[78] = 44 /* KeyN */;
|
|
72
|
-
exports.KEY_CODE_MAP[79] = 45 /* KeyO */;
|
|
73
|
-
exports.KEY_CODE_MAP[80] = 46 /* KeyP */;
|
|
74
|
-
exports.KEY_CODE_MAP[81] = 47 /* KeyQ */;
|
|
75
|
-
exports.KEY_CODE_MAP[82] = 48 /* KeyR */;
|
|
76
|
-
exports.KEY_CODE_MAP[83] = 49 /* KeyS */;
|
|
77
|
-
exports.KEY_CODE_MAP[84] = 50 /* KeyT */;
|
|
78
|
-
exports.KEY_CODE_MAP[85] = 51 /* KeyU */;
|
|
79
|
-
exports.KEY_CODE_MAP[86] = 52 /* KeyV */;
|
|
80
|
-
exports.KEY_CODE_MAP[87] = 53 /* KeyW */;
|
|
81
|
-
exports.KEY_CODE_MAP[88] = 54 /* KeyX */;
|
|
82
|
-
exports.KEY_CODE_MAP[89] = 55 /* KeyY */;
|
|
83
|
-
exports.KEY_CODE_MAP[90] = 56 /* KeyZ */;
|
|
84
|
-
exports.KEY_CODE_MAP[93] = 58 /* ContextMenu */;
|
|
85
|
-
exports.KEY_CODE_MAP[96] = 93 /* Numpad0 */;
|
|
86
|
-
exports.KEY_CODE_MAP[97] = 94 /* Numpad1 */;
|
|
87
|
-
exports.KEY_CODE_MAP[98] = 95 /* Numpad2 */;
|
|
88
|
-
exports.KEY_CODE_MAP[99] = 96 /* Numpad3 */;
|
|
89
|
-
exports.KEY_CODE_MAP[100] = 97 /* Numpad4 */;
|
|
90
|
-
exports.KEY_CODE_MAP[101] = 98 /* Numpad5 */;
|
|
91
|
-
exports.KEY_CODE_MAP[102] = 99 /* Numpad6 */;
|
|
92
|
-
exports.KEY_CODE_MAP[103] = 100 /* Numpad7 */;
|
|
93
|
-
exports.KEY_CODE_MAP[104] = 101 /* Numpad8 */;
|
|
94
|
-
exports.KEY_CODE_MAP[105] = 102 /* Numpad9 */;
|
|
95
|
-
exports.KEY_CODE_MAP[106] = 103 /* NumpadMultiply */;
|
|
96
|
-
exports.KEY_CODE_MAP[107] = 104 /* NumpadAdd */;
|
|
97
|
-
exports.KEY_CODE_MAP[108] = 105 /* NUMPAD_SEPARATOR */;
|
|
98
|
-
exports.KEY_CODE_MAP[109] = 106 /* NumpadSubtract */;
|
|
99
|
-
exports.KEY_CODE_MAP[110] = 107 /* NumpadDecimal */;
|
|
100
|
-
exports.KEY_CODE_MAP[111] = 108 /* NumpadDivide */;
|
|
101
|
-
exports.KEY_CODE_MAP[112] = 59 /* F1 */;
|
|
102
|
-
exports.KEY_CODE_MAP[113] = 60 /* F2 */;
|
|
103
|
-
exports.KEY_CODE_MAP[114] = 61 /* F3 */;
|
|
104
|
-
exports.KEY_CODE_MAP[115] = 62 /* F4 */;
|
|
105
|
-
exports.KEY_CODE_MAP[116] = 63 /* F5 */;
|
|
106
|
-
exports.KEY_CODE_MAP[117] = 64 /* F6 */;
|
|
107
|
-
exports.KEY_CODE_MAP[118] = 65 /* F7 */;
|
|
108
|
-
exports.KEY_CODE_MAP[119] = 66 /* F8 */;
|
|
109
|
-
exports.KEY_CODE_MAP[120] = 67 /* F9 */;
|
|
110
|
-
exports.KEY_CODE_MAP[121] = 68 /* F10 */;
|
|
111
|
-
exports.KEY_CODE_MAP[122] = 69 /* F11 */;
|
|
112
|
-
exports.KEY_CODE_MAP[123] = 70 /* F12 */;
|
|
113
|
-
exports.KEY_CODE_MAP[124] = 71 /* F13 */;
|
|
114
|
-
exports.KEY_CODE_MAP[125] = 72 /* F14 */;
|
|
115
|
-
exports.KEY_CODE_MAP[126] = 73 /* F15 */;
|
|
116
|
-
exports.KEY_CODE_MAP[127] = 74 /* F16 */;
|
|
117
|
-
exports.KEY_CODE_MAP[128] = 75 /* F17 */;
|
|
118
|
-
exports.KEY_CODE_MAP[129] = 76 /* F18 */;
|
|
119
|
-
exports.KEY_CODE_MAP[130] = 77 /* F19 */;
|
|
120
|
-
exports.KEY_CODE_MAP[144] = 78 /* NumLock */;
|
|
121
|
-
exports.KEY_CODE_MAP[145] = 79 /* ScrollLock */;
|
|
122
|
-
exports.KEY_CODE_MAP[186] = 80 /* Semicolon */;
|
|
123
|
-
exports.KEY_CODE_MAP[187] = 81 /* Equal */;
|
|
124
|
-
exports.KEY_CODE_MAP[188] = 82 /* Comma */;
|
|
125
|
-
exports.KEY_CODE_MAP[189] = 83 /* Minus */;
|
|
126
|
-
exports.KEY_CODE_MAP[190] = 84 /* Period */;
|
|
127
|
-
exports.KEY_CODE_MAP[191] = 85 /* Slash */;
|
|
128
|
-
exports.KEY_CODE_MAP[192] = 86 /* Backquote */;
|
|
129
|
-
exports.KEY_CODE_MAP[193] = 110 /* ABNT_C1 */;
|
|
130
|
-
exports.KEY_CODE_MAP[194] = 111 /* ABNT_C2 */;
|
|
131
|
-
exports.KEY_CODE_MAP[219] = 87 /* BracketLeft */;
|
|
132
|
-
exports.KEY_CODE_MAP[220] = 88 /* Backslash */;
|
|
133
|
-
exports.KEY_CODE_MAP[221] = 89 /* BracketRight */;
|
|
134
|
-
exports.KEY_CODE_MAP[222] = 90 /* Quote */;
|
|
135
|
-
exports.KEY_CODE_MAP[223] = 91 /* OEM_8 */;
|
|
136
|
-
exports.KEY_CODE_MAP[226] = 92 /* IntlBackslash */;
|
|
137
|
-
/**
|
|
138
|
-
* https://lists.w3.org/Archives/Public/www-dom/2010JulSep/att-0182/keyCode-spec.html
|
|
139
|
-
* If an Input Method Editor is processing key input and the event is keydown, return 229.
|
|
140
|
-
*/
|
|
141
|
-
exports.KEY_CODE_MAP[229] = 109 /* KEY_IN_COMPOSITION */;
|
|
142
|
-
if (browser.isIE) {
|
|
143
|
-
exports.KEY_CODE_MAP[91] = 57 /* Meta */;
|
|
144
|
-
}
|
|
145
|
-
else if (browser.isFirefox) {
|
|
146
|
-
exports.KEY_CODE_MAP[59] = 80 /* Semicolon */;
|
|
147
|
-
exports.KEY_CODE_MAP[107] = 81 /* Equal */;
|
|
148
|
-
exports.KEY_CODE_MAP[109] = 83 /* Minus */;
|
|
149
|
-
if (MonacoPlatform.OS === 2 /* Macintosh */) {
|
|
150
|
-
exports.KEY_CODE_MAP[224] = 57 /* Meta */;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
else if (browser.isWebKit) {
|
|
154
|
-
exports.KEY_CODE_MAP[91] = 57 /* Meta */;
|
|
155
|
-
if (MonacoPlatform.OS === 2 /* Macintosh */) {
|
|
156
|
-
// the two meta keys in the Mac have different key codes (91 and 93)
|
|
157
|
-
exports.KEY_CODE_MAP[93] = 57 /* Meta */;
|
|
158
|
-
}
|
|
159
|
-
else {
|
|
160
|
-
exports.KEY_CODE_MAP[92] = 57 /* Meta */;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
})();
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2017 TypeFox 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 WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
/*---------------------------------------------------------------------------------------------
|
|
18
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
19
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
20
|
+
*--------------------------------------------------------------------------------------------*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.KEY_CODE_MAP = void 0;
|
|
23
|
+
const browser = require("@theia/core/lib/browser");
|
|
24
|
+
const MonacoPlatform = require("@theia/monaco-editor-core/esm/vs/base/common/platform");
|
|
25
|
+
exports.KEY_CODE_MAP = [];
|
|
26
|
+
(function () {
|
|
27
|
+
exports.KEY_CODE_MAP[3] = 7 /* PauseBreak */; // VK_CANCEL 0x03 Control-break processing
|
|
28
|
+
exports.KEY_CODE_MAP[8] = 1 /* Backspace */;
|
|
29
|
+
exports.KEY_CODE_MAP[9] = 2 /* Tab */;
|
|
30
|
+
exports.KEY_CODE_MAP[13] = 3 /* Enter */;
|
|
31
|
+
exports.KEY_CODE_MAP[16] = 4 /* Shift */;
|
|
32
|
+
exports.KEY_CODE_MAP[17] = 5 /* Ctrl */;
|
|
33
|
+
exports.KEY_CODE_MAP[18] = 6 /* Alt */;
|
|
34
|
+
exports.KEY_CODE_MAP[19] = 7 /* PauseBreak */;
|
|
35
|
+
exports.KEY_CODE_MAP[20] = 8 /* CapsLock */;
|
|
36
|
+
exports.KEY_CODE_MAP[27] = 9 /* Escape */;
|
|
37
|
+
exports.KEY_CODE_MAP[32] = 10 /* Space */;
|
|
38
|
+
exports.KEY_CODE_MAP[33] = 11 /* PageUp */;
|
|
39
|
+
exports.KEY_CODE_MAP[34] = 12 /* PageDown */;
|
|
40
|
+
exports.KEY_CODE_MAP[35] = 13 /* End */;
|
|
41
|
+
exports.KEY_CODE_MAP[36] = 14 /* Home */;
|
|
42
|
+
exports.KEY_CODE_MAP[37] = 15 /* LeftArrow */;
|
|
43
|
+
exports.KEY_CODE_MAP[38] = 16 /* UpArrow */;
|
|
44
|
+
exports.KEY_CODE_MAP[39] = 17 /* RightArrow */;
|
|
45
|
+
exports.KEY_CODE_MAP[40] = 18 /* DownArrow */;
|
|
46
|
+
exports.KEY_CODE_MAP[45] = 19 /* Insert */;
|
|
47
|
+
exports.KEY_CODE_MAP[46] = 20 /* Delete */;
|
|
48
|
+
exports.KEY_CODE_MAP[48] = 21 /* Digit0 */;
|
|
49
|
+
exports.KEY_CODE_MAP[49] = 22 /* Digit1 */;
|
|
50
|
+
exports.KEY_CODE_MAP[50] = 23 /* Digit2 */;
|
|
51
|
+
exports.KEY_CODE_MAP[51] = 24 /* Digit3 */;
|
|
52
|
+
exports.KEY_CODE_MAP[52] = 25 /* Digit4 */;
|
|
53
|
+
exports.KEY_CODE_MAP[53] = 26 /* Digit5 */;
|
|
54
|
+
exports.KEY_CODE_MAP[54] = 27 /* Digit6 */;
|
|
55
|
+
exports.KEY_CODE_MAP[55] = 28 /* Digit7 */;
|
|
56
|
+
exports.KEY_CODE_MAP[56] = 29 /* Digit8 */;
|
|
57
|
+
exports.KEY_CODE_MAP[57] = 30 /* Digit9 */;
|
|
58
|
+
exports.KEY_CODE_MAP[65] = 31 /* KeyA */;
|
|
59
|
+
exports.KEY_CODE_MAP[66] = 32 /* KeyB */;
|
|
60
|
+
exports.KEY_CODE_MAP[67] = 33 /* KeyC */;
|
|
61
|
+
exports.KEY_CODE_MAP[68] = 34 /* KeyD */;
|
|
62
|
+
exports.KEY_CODE_MAP[69] = 35 /* KeyE */;
|
|
63
|
+
exports.KEY_CODE_MAP[70] = 36 /* KeyF */;
|
|
64
|
+
exports.KEY_CODE_MAP[71] = 37 /* KeyG */;
|
|
65
|
+
exports.KEY_CODE_MAP[72] = 38 /* KeyH */;
|
|
66
|
+
exports.KEY_CODE_MAP[73] = 39 /* KeyI */;
|
|
67
|
+
exports.KEY_CODE_MAP[74] = 40 /* KeyJ */;
|
|
68
|
+
exports.KEY_CODE_MAP[75] = 41 /* KeyK */;
|
|
69
|
+
exports.KEY_CODE_MAP[76] = 42 /* KeyL */;
|
|
70
|
+
exports.KEY_CODE_MAP[77] = 43 /* KeyM */;
|
|
71
|
+
exports.KEY_CODE_MAP[78] = 44 /* KeyN */;
|
|
72
|
+
exports.KEY_CODE_MAP[79] = 45 /* KeyO */;
|
|
73
|
+
exports.KEY_CODE_MAP[80] = 46 /* KeyP */;
|
|
74
|
+
exports.KEY_CODE_MAP[81] = 47 /* KeyQ */;
|
|
75
|
+
exports.KEY_CODE_MAP[82] = 48 /* KeyR */;
|
|
76
|
+
exports.KEY_CODE_MAP[83] = 49 /* KeyS */;
|
|
77
|
+
exports.KEY_CODE_MAP[84] = 50 /* KeyT */;
|
|
78
|
+
exports.KEY_CODE_MAP[85] = 51 /* KeyU */;
|
|
79
|
+
exports.KEY_CODE_MAP[86] = 52 /* KeyV */;
|
|
80
|
+
exports.KEY_CODE_MAP[87] = 53 /* KeyW */;
|
|
81
|
+
exports.KEY_CODE_MAP[88] = 54 /* KeyX */;
|
|
82
|
+
exports.KEY_CODE_MAP[89] = 55 /* KeyY */;
|
|
83
|
+
exports.KEY_CODE_MAP[90] = 56 /* KeyZ */;
|
|
84
|
+
exports.KEY_CODE_MAP[93] = 58 /* ContextMenu */;
|
|
85
|
+
exports.KEY_CODE_MAP[96] = 93 /* Numpad0 */;
|
|
86
|
+
exports.KEY_CODE_MAP[97] = 94 /* Numpad1 */;
|
|
87
|
+
exports.KEY_CODE_MAP[98] = 95 /* Numpad2 */;
|
|
88
|
+
exports.KEY_CODE_MAP[99] = 96 /* Numpad3 */;
|
|
89
|
+
exports.KEY_CODE_MAP[100] = 97 /* Numpad4 */;
|
|
90
|
+
exports.KEY_CODE_MAP[101] = 98 /* Numpad5 */;
|
|
91
|
+
exports.KEY_CODE_MAP[102] = 99 /* Numpad6 */;
|
|
92
|
+
exports.KEY_CODE_MAP[103] = 100 /* Numpad7 */;
|
|
93
|
+
exports.KEY_CODE_MAP[104] = 101 /* Numpad8 */;
|
|
94
|
+
exports.KEY_CODE_MAP[105] = 102 /* Numpad9 */;
|
|
95
|
+
exports.KEY_CODE_MAP[106] = 103 /* NumpadMultiply */;
|
|
96
|
+
exports.KEY_CODE_MAP[107] = 104 /* NumpadAdd */;
|
|
97
|
+
exports.KEY_CODE_MAP[108] = 105 /* NUMPAD_SEPARATOR */;
|
|
98
|
+
exports.KEY_CODE_MAP[109] = 106 /* NumpadSubtract */;
|
|
99
|
+
exports.KEY_CODE_MAP[110] = 107 /* NumpadDecimal */;
|
|
100
|
+
exports.KEY_CODE_MAP[111] = 108 /* NumpadDivide */;
|
|
101
|
+
exports.KEY_CODE_MAP[112] = 59 /* F1 */;
|
|
102
|
+
exports.KEY_CODE_MAP[113] = 60 /* F2 */;
|
|
103
|
+
exports.KEY_CODE_MAP[114] = 61 /* F3 */;
|
|
104
|
+
exports.KEY_CODE_MAP[115] = 62 /* F4 */;
|
|
105
|
+
exports.KEY_CODE_MAP[116] = 63 /* F5 */;
|
|
106
|
+
exports.KEY_CODE_MAP[117] = 64 /* F6 */;
|
|
107
|
+
exports.KEY_CODE_MAP[118] = 65 /* F7 */;
|
|
108
|
+
exports.KEY_CODE_MAP[119] = 66 /* F8 */;
|
|
109
|
+
exports.KEY_CODE_MAP[120] = 67 /* F9 */;
|
|
110
|
+
exports.KEY_CODE_MAP[121] = 68 /* F10 */;
|
|
111
|
+
exports.KEY_CODE_MAP[122] = 69 /* F11 */;
|
|
112
|
+
exports.KEY_CODE_MAP[123] = 70 /* F12 */;
|
|
113
|
+
exports.KEY_CODE_MAP[124] = 71 /* F13 */;
|
|
114
|
+
exports.KEY_CODE_MAP[125] = 72 /* F14 */;
|
|
115
|
+
exports.KEY_CODE_MAP[126] = 73 /* F15 */;
|
|
116
|
+
exports.KEY_CODE_MAP[127] = 74 /* F16 */;
|
|
117
|
+
exports.KEY_CODE_MAP[128] = 75 /* F17 */;
|
|
118
|
+
exports.KEY_CODE_MAP[129] = 76 /* F18 */;
|
|
119
|
+
exports.KEY_CODE_MAP[130] = 77 /* F19 */;
|
|
120
|
+
exports.KEY_CODE_MAP[144] = 78 /* NumLock */;
|
|
121
|
+
exports.KEY_CODE_MAP[145] = 79 /* ScrollLock */;
|
|
122
|
+
exports.KEY_CODE_MAP[186] = 80 /* Semicolon */;
|
|
123
|
+
exports.KEY_CODE_MAP[187] = 81 /* Equal */;
|
|
124
|
+
exports.KEY_CODE_MAP[188] = 82 /* Comma */;
|
|
125
|
+
exports.KEY_CODE_MAP[189] = 83 /* Minus */;
|
|
126
|
+
exports.KEY_CODE_MAP[190] = 84 /* Period */;
|
|
127
|
+
exports.KEY_CODE_MAP[191] = 85 /* Slash */;
|
|
128
|
+
exports.KEY_CODE_MAP[192] = 86 /* Backquote */;
|
|
129
|
+
exports.KEY_CODE_MAP[193] = 110 /* ABNT_C1 */;
|
|
130
|
+
exports.KEY_CODE_MAP[194] = 111 /* ABNT_C2 */;
|
|
131
|
+
exports.KEY_CODE_MAP[219] = 87 /* BracketLeft */;
|
|
132
|
+
exports.KEY_CODE_MAP[220] = 88 /* Backslash */;
|
|
133
|
+
exports.KEY_CODE_MAP[221] = 89 /* BracketRight */;
|
|
134
|
+
exports.KEY_CODE_MAP[222] = 90 /* Quote */;
|
|
135
|
+
exports.KEY_CODE_MAP[223] = 91 /* OEM_8 */;
|
|
136
|
+
exports.KEY_CODE_MAP[226] = 92 /* IntlBackslash */;
|
|
137
|
+
/**
|
|
138
|
+
* https://lists.w3.org/Archives/Public/www-dom/2010JulSep/att-0182/keyCode-spec.html
|
|
139
|
+
* If an Input Method Editor is processing key input and the event is keydown, return 229.
|
|
140
|
+
*/
|
|
141
|
+
exports.KEY_CODE_MAP[229] = 109 /* KEY_IN_COMPOSITION */;
|
|
142
|
+
if (browser.isIE) {
|
|
143
|
+
exports.KEY_CODE_MAP[91] = 57 /* Meta */;
|
|
144
|
+
}
|
|
145
|
+
else if (browser.isFirefox) {
|
|
146
|
+
exports.KEY_CODE_MAP[59] = 80 /* Semicolon */;
|
|
147
|
+
exports.KEY_CODE_MAP[107] = 81 /* Equal */;
|
|
148
|
+
exports.KEY_CODE_MAP[109] = 83 /* Minus */;
|
|
149
|
+
if (MonacoPlatform.OS === 2 /* Macintosh */) {
|
|
150
|
+
exports.KEY_CODE_MAP[224] = 57 /* Meta */;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
else if (browser.isWebKit) {
|
|
154
|
+
exports.KEY_CODE_MAP[91] = 57 /* Meta */;
|
|
155
|
+
if (MonacoPlatform.OS === 2 /* Macintosh */) {
|
|
156
|
+
// the two meta keys in the Mac have different key codes (91 and 93)
|
|
157
|
+
exports.KEY_CODE_MAP[93] = 57 /* Meta */;
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
exports.KEY_CODE_MAP[92] = 57 /* Meta */;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
})();
|
|
164
164
|
//# sourceMappingURL=monaco-keycode-map.js.map
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { SymbolInformation, WorkspaceSymbolParams } from '@theia/core/shared/vscode-languageserver-protocol';
|
|
2
|
-
import { ProblemManager } from '@theia/markers/lib/browser/problem/problem-manager';
|
|
3
|
-
import URI from '@theia/core/lib/common/uri';
|
|
4
|
-
import { MaybePromise, Mutable } from '@theia/core/lib/common/types';
|
|
5
|
-
import { Disposable } from '@theia/core/lib/common/disposable';
|
|
6
|
-
import { CancellationToken } from '@theia/core/lib/common/cancellation';
|
|
7
|
-
import { Language, LanguageService } from '@theia/core/lib/browser/language-service';
|
|
8
|
-
import { MonacoDiagnosticCollection } from './monaco-diagnostic-collection';
|
|
9
|
-
import { ProtocolToMonacoConverter } from './protocol-to-monaco-converter';
|
|
10
|
-
import * as monaco from '@theia/monaco-editor-core';
|
|
11
|
-
export interface WorkspaceSymbolProvider {
|
|
12
|
-
provideWorkspaceSymbols(params: WorkspaceSymbolParams, token: CancellationToken): MaybePromise<SymbolInformation[] | undefined>;
|
|
13
|
-
resolveWorkspaceSymbol?(symbol: SymbolInformation, token: CancellationToken): Thenable<SymbolInformation | undefined>;
|
|
14
|
-
}
|
|
15
|
-
export declare class MonacoLanguages implements LanguageService {
|
|
16
|
-
readonly workspaceSymbolProviders: WorkspaceSymbolProvider[];
|
|
17
|
-
protected readonly makers: Map<string, MonacoDiagnosticCollection>;
|
|
18
|
-
protected readonly problemManager: ProblemManager;
|
|
19
|
-
protected readonly p2m: ProtocolToMonacoConverter;
|
|
20
|
-
protected init(): void;
|
|
21
|
-
protected updateMarkers(uri: URI): void;
|
|
22
|
-
registerWorkspaceSymbolProvider(provider: WorkspaceSymbolProvider): Disposable;
|
|
23
|
-
get languages(): Language[];
|
|
24
|
-
getLanguage(languageId: string): Language | undefined;
|
|
25
|
-
getExtension(languageId: string): string | undefined;
|
|
26
|
-
protected mergeLanguages(registered: monaco.languages.ILanguageExtensionPoint[]): Map<string, Mutable<Language>>;
|
|
27
|
-
}
|
|
1
|
+
import { SymbolInformation, WorkspaceSymbolParams } from '@theia/core/shared/vscode-languageserver-protocol';
|
|
2
|
+
import { ProblemManager } from '@theia/markers/lib/browser/problem/problem-manager';
|
|
3
|
+
import URI from '@theia/core/lib/common/uri';
|
|
4
|
+
import { MaybePromise, Mutable } from '@theia/core/lib/common/types';
|
|
5
|
+
import { Disposable } from '@theia/core/lib/common/disposable';
|
|
6
|
+
import { CancellationToken } from '@theia/core/lib/common/cancellation';
|
|
7
|
+
import { Language, LanguageService } from '@theia/core/lib/browser/language-service';
|
|
8
|
+
import { MonacoDiagnosticCollection } from './monaco-diagnostic-collection';
|
|
9
|
+
import { ProtocolToMonacoConverter } from './protocol-to-monaco-converter';
|
|
10
|
+
import * as monaco from '@theia/monaco-editor-core';
|
|
11
|
+
export interface WorkspaceSymbolProvider {
|
|
12
|
+
provideWorkspaceSymbols(params: WorkspaceSymbolParams, token: CancellationToken): MaybePromise<SymbolInformation[] | undefined>;
|
|
13
|
+
resolveWorkspaceSymbol?(symbol: SymbolInformation, token: CancellationToken): Thenable<SymbolInformation | undefined>;
|
|
14
|
+
}
|
|
15
|
+
export declare class MonacoLanguages implements LanguageService {
|
|
16
|
+
readonly workspaceSymbolProviders: WorkspaceSymbolProvider[];
|
|
17
|
+
protected readonly makers: Map<string, MonacoDiagnosticCollection>;
|
|
18
|
+
protected readonly problemManager: ProblemManager;
|
|
19
|
+
protected readonly p2m: ProtocolToMonacoConverter;
|
|
20
|
+
protected init(): void;
|
|
21
|
+
protected updateMarkers(uri: URI): void;
|
|
22
|
+
registerWorkspaceSymbolProvider(provider: WorkspaceSymbolProvider): Disposable;
|
|
23
|
+
get languages(): Language[];
|
|
24
|
+
getLanguage(languageId: string): Language | undefined;
|
|
25
|
+
getExtension(languageId: string): string | undefined;
|
|
26
|
+
protected mergeLanguages(registered: monaco.languages.ILanguageExtensionPoint[]): Map<string, Mutable<Language>>;
|
|
27
|
+
}
|
|
28
28
|
//# sourceMappingURL=monaco-languages.d.ts.map
|