@lvce-editor/constants 1.41.0 → 1.43.0
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/dist/index.d.ts +17 -4
- package/dist/parts/ElementTagMap/ElementTagMap.js +74 -74
- package/dist/parts/GetKeyCode/GetKeyCode.js +94 -94
- package/dist/parts/GetKeyCodeString/GetKeyCodeString.js +48 -48
- package/dist/parts/GetWidgetName/GetWidgetName.js +2 -2
- package/dist/parts/Main/Main.js +1 -0
- package/dist/parts/ParseKey/ParseKey.js +1 -1
- package/dist/parts/QuickPickPrefix/QuickPickPrefix.js +8 -0
- package/dist/parts/RpcId/RpcId.js +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -661,9 +661,9 @@ declare const Ignore = 7;
|
|
|
661
661
|
declare const Keyboard = -1;
|
|
662
662
|
declare const LeftClick = 0;
|
|
663
663
|
export interface ParsedKey {
|
|
664
|
-
readonly key: string;
|
|
665
664
|
readonly isCtrl: boolean;
|
|
666
665
|
readonly isShift: boolean;
|
|
666
|
+
readonly key: string;
|
|
667
667
|
}
|
|
668
668
|
declare const parseKey: (rawKey: number) => ParsedKey;
|
|
669
669
|
declare const SetText = 1;
|
|
@@ -692,6 +692,14 @@ declare const View$1 = 8;
|
|
|
692
692
|
declare const WorkspaceSymbol = 9;
|
|
693
693
|
declare const Noop = 10;
|
|
694
694
|
declare const EveryThing = 100;
|
|
695
|
+
declare const Command = ">";
|
|
696
|
+
declare const Symbol$1 = "@";
|
|
697
|
+
declare const WorkspaceSymbol$1 = "#";
|
|
698
|
+
declare const GoToLine$1 = ":";
|
|
699
|
+
declare const View$2 = "view ";
|
|
700
|
+
declare const None$3 = "";
|
|
701
|
+
declare const Help$2 = "?";
|
|
702
|
+
declare const GoToColumn = "::";
|
|
695
703
|
declare const ClipBoardProcess = 3401;
|
|
696
704
|
declare const ClipBoardWorker = 3400;
|
|
697
705
|
declare const ColorPickerWorker = 302;
|
|
@@ -726,12 +734,13 @@ declare const TestWithPlaywrightWorker = 6001;
|
|
|
726
734
|
declare const IconThemeWorker = 7009;
|
|
727
735
|
declare const TextSearchWorker = 7010;
|
|
728
736
|
declare const TextMeasurementWorker = 7011;
|
|
737
|
+
declare const ExtensionManagementWorker = 9006;
|
|
729
738
|
declare const Left = 1;
|
|
730
739
|
declare const Right = 2;
|
|
731
740
|
declare const File$3 = 1;
|
|
732
741
|
declare const Match = 2;
|
|
733
742
|
declare const uidSymbol: unique symbol;
|
|
734
|
-
declare const None$
|
|
743
|
+
declare const None$4 = 0;
|
|
735
744
|
declare const CheckingForUpdate = 1;
|
|
736
745
|
declare const DownloadingUpdate = 2;
|
|
737
746
|
declare const DownloadedUpdate = 3;
|
|
@@ -976,8 +985,11 @@ declare namespace PlatformType {
|
|
|
976
985
|
declare namespace QuickPickEntryId {
|
|
977
986
|
export { ColorTheme, Commands, Custom, EveryThing, File$2 as File, GoToLine, Help$1 as Help, Noop, Recent, Symbol$1 as Symbol, View$1 as View, WorkspaceSymbol };
|
|
978
987
|
}
|
|
988
|
+
declare namespace QuickPickPrefix {
|
|
989
|
+
export { Command, GoToColumn, GoToLine$1 as GoToLine, Help$2 as Help, None$3 as None, Symbol$1 as Symbol, View$2 as View, WorkspaceSymbol$1 as WorkspaceSymbol };
|
|
990
|
+
}
|
|
979
991
|
declare namespace RpcId {
|
|
980
|
-
export { ClipBoardProcess, ClipBoardWorker, ColorPickerWorker, CompletionWorker, DebugWorker, EditorWorker, EmbedsProcess, EmbedsWorker, ErrorWorker, ExtensionDetailWorker, ExtensionHostWorker, FileSystemProcess, FileSystemWorker, FindWidgetWorker, HoverWorker, IconThemeWorker, MainProcess, MarkdownWorker, OutputWorker, ProblemsWorker, RenameWorker, RendererProcess, RendererWorker, SearchProcess, SearchProcessElectron, SharedProcess, SourceActionWorker, SourceControlWorker, SyntaxHighlightingWorker, TestWithPlaywrightCli, TestWithPlaywrightWorker, TestWorker, TextMeasurementWorker, TextSearchWorker };
|
|
992
|
+
export { ClipBoardProcess, ClipBoardWorker, ColorPickerWorker, CompletionWorker, DebugWorker, EditorWorker, EmbedsProcess, EmbedsWorker, ErrorWorker, ExtensionDetailWorker, ExtensionHostWorker, ExtensionManagementWorker, FileSystemProcess, FileSystemWorker, FindWidgetWorker, HoverWorker, IconThemeWorker, MainProcess, MarkdownWorker, OutputWorker, ProblemsWorker, RenameWorker, RendererProcess, RendererWorker, SearchProcess, SearchProcessElectron, SharedProcess, SourceActionWorker, SourceControlWorker, SyntaxHighlightingWorker, TestWithPlaywrightCli, TestWithPlaywrightWorker, TestWorker, TextMeasurementWorker, TextSearchWorker };
|
|
981
993
|
}
|
|
982
994
|
declare namespace SideBarLocationType {
|
|
983
995
|
export { Left, Right };
|
|
@@ -989,7 +1001,7 @@ declare namespace UidSymbol {
|
|
|
989
1001
|
export { uidSymbol };
|
|
990
1002
|
}
|
|
991
1003
|
declare namespace UpdateState {
|
|
992
|
-
export { CheckingForUpdate, DownloadedUpdate, DownloadingUpdate, InstallingUpdated, None$
|
|
1004
|
+
export { CheckingForUpdate, DownloadedUpdate, DownloadingUpdate, InstallingUpdated, None$4 as None, WaitingForRestart };
|
|
993
1005
|
}
|
|
994
1006
|
declare namespace ViewletCommand {
|
|
995
1007
|
export { FocusElementByName, FocusSelector, SetCss, SetDom2, SetDragData, SetFocusContext, SetProperty, SetSelectionByName, SetValueByName };
|
|
@@ -1039,6 +1051,7 @@ export {
|
|
|
1039
1051
|
PatchType,
|
|
1040
1052
|
PlatformType,
|
|
1041
1053
|
QuickPickEntryId,
|
|
1054
|
+
QuickPickPrefix,
|
|
1042
1055
|
RpcId,
|
|
1043
1056
|
SideBarLocationType,
|
|
1044
1057
|
TextSearchResultType,
|
|
@@ -2,8 +2,44 @@ import * as ElementTag from "../ElementTags/ElementTags.js";
|
|
|
2
2
|
import * as VirtualDomElements from "../VirtualDomElements/VirtualDomElements.js";
|
|
3
3
|
export const getElementTag = (type) => {
|
|
4
4
|
switch (type) {
|
|
5
|
+
case VirtualDomElements.A:
|
|
6
|
+
return ElementTag.A;
|
|
7
|
+
case VirtualDomElements.Article:
|
|
8
|
+
return ElementTag.Article;
|
|
9
|
+
case VirtualDomElements.Aside:
|
|
10
|
+
return ElementTag.Aside;
|
|
5
11
|
case VirtualDomElements.Audio:
|
|
6
12
|
return ElementTag.Audio;
|
|
13
|
+
case VirtualDomElements.Br:
|
|
14
|
+
return ElementTag.Br;
|
|
15
|
+
case VirtualDomElements.Button:
|
|
16
|
+
return ElementTag.Button;
|
|
17
|
+
case VirtualDomElements.Cite:
|
|
18
|
+
return ElementTag.Cite;
|
|
19
|
+
case VirtualDomElements.Code:
|
|
20
|
+
return ElementTag.Code;
|
|
21
|
+
case VirtualDomElements.Col:
|
|
22
|
+
return ElementTag.Col;
|
|
23
|
+
case VirtualDomElements.ColGroup:
|
|
24
|
+
return ElementTag.ColGroup;
|
|
25
|
+
case VirtualDomElements.Data:
|
|
26
|
+
return ElementTag.Data;
|
|
27
|
+
case VirtualDomElements.Dd:
|
|
28
|
+
return ElementTag.Dd;
|
|
29
|
+
case VirtualDomElements.Del:
|
|
30
|
+
return ElementTag.Del;
|
|
31
|
+
case VirtualDomElements.Div:
|
|
32
|
+
return ElementTag.Div;
|
|
33
|
+
case VirtualDomElements.Dl:
|
|
34
|
+
return ElementTag.Dl;
|
|
35
|
+
case VirtualDomElements.Dt:
|
|
36
|
+
return ElementTag.Dt;
|
|
37
|
+
case VirtualDomElements.Figcaption:
|
|
38
|
+
return ElementTag.Figcaption;
|
|
39
|
+
case VirtualDomElements.Figure:
|
|
40
|
+
return ElementTag.Figure;
|
|
41
|
+
case VirtualDomElements.Footer:
|
|
42
|
+
return ElementTag.Footer;
|
|
7
43
|
case VirtualDomElements.H1:
|
|
8
44
|
return ElementTag.H1;
|
|
9
45
|
case VirtualDomElements.H2:
|
|
@@ -16,100 +52,64 @@ export const getElementTag = (type) => {
|
|
|
16
52
|
return ElementTag.H5;
|
|
17
53
|
case VirtualDomElements.H6:
|
|
18
54
|
return ElementTag.H6;
|
|
19
|
-
case VirtualDomElements.
|
|
20
|
-
return ElementTag.
|
|
21
|
-
case VirtualDomElements.
|
|
22
|
-
return ElementTag.
|
|
23
|
-
case VirtualDomElements.Table:
|
|
24
|
-
return ElementTag.Table;
|
|
25
|
-
case VirtualDomElements.TBody:
|
|
26
|
-
return ElementTag.TBody;
|
|
27
|
-
case VirtualDomElements.Th:
|
|
28
|
-
return ElementTag.Th;
|
|
29
|
-
case VirtualDomElements.Td:
|
|
30
|
-
return ElementTag.Td;
|
|
31
|
-
case VirtualDomElements.THead:
|
|
32
|
-
return ElementTag.THead;
|
|
33
|
-
case VirtualDomElements.Tr:
|
|
34
|
-
return ElementTag.Tr;
|
|
35
|
-
case VirtualDomElements.Input:
|
|
36
|
-
return ElementTag.Input;
|
|
37
|
-
case VirtualDomElements.ColGroup:
|
|
38
|
-
return ElementTag.ColGroup;
|
|
39
|
-
case VirtualDomElements.Col:
|
|
40
|
-
return ElementTag.Col;
|
|
41
|
-
case VirtualDomElements.Button:
|
|
42
|
-
return ElementTag.Button;
|
|
43
|
-
case VirtualDomElements.Span:
|
|
44
|
-
return ElementTag.Span;
|
|
55
|
+
case VirtualDomElements.Header:
|
|
56
|
+
return ElementTag.Header;
|
|
57
|
+
case VirtualDomElements.Hr:
|
|
58
|
+
return ElementTag.Hr;
|
|
45
59
|
case VirtualDomElements.I:
|
|
46
60
|
return ElementTag.I;
|
|
47
61
|
case VirtualDomElements.Img:
|
|
48
62
|
return ElementTag.Img;
|
|
63
|
+
case VirtualDomElements.Input:
|
|
64
|
+
return ElementTag.Input;
|
|
49
65
|
case VirtualDomElements.Ins:
|
|
50
66
|
return ElementTag.Ins;
|
|
51
|
-
case VirtualDomElements.
|
|
52
|
-
return ElementTag.
|
|
53
|
-
case VirtualDomElements.
|
|
54
|
-
return ElementTag.
|
|
55
|
-
case VirtualDomElements.Aside:
|
|
56
|
-
return ElementTag.Aside;
|
|
57
|
-
case VirtualDomElements.Footer:
|
|
58
|
-
return ElementTag.Footer;
|
|
59
|
-
case VirtualDomElements.Header:
|
|
60
|
-
return ElementTag.Header;
|
|
61
|
-
case VirtualDomElements.Nav:
|
|
62
|
-
return ElementTag.Nav;
|
|
63
|
-
case VirtualDomElements.Section:
|
|
64
|
-
return ElementTag.Section;
|
|
65
|
-
case VirtualDomElements.Search:
|
|
66
|
-
return ElementTag.Search;
|
|
67
|
-
case VirtualDomElements.Dd:
|
|
68
|
-
return ElementTag.Dd;
|
|
69
|
-
case VirtualDomElements.Dl:
|
|
70
|
-
return ElementTag.Dl;
|
|
71
|
-
case VirtualDomElements.Figcaption:
|
|
72
|
-
return ElementTag.Figcaption;
|
|
73
|
-
case VirtualDomElements.Figure:
|
|
74
|
-
return ElementTag.Figure;
|
|
75
|
-
case VirtualDomElements.Hr:
|
|
76
|
-
return ElementTag.Hr;
|
|
67
|
+
case VirtualDomElements.Kbd:
|
|
68
|
+
return ElementTag.Kbd;
|
|
69
|
+
case VirtualDomElements.Label:
|
|
70
|
+
return ElementTag.Label;
|
|
77
71
|
case VirtualDomElements.Li:
|
|
78
72
|
return ElementTag.Li;
|
|
73
|
+
case VirtualDomElements.Nav:
|
|
74
|
+
return ElementTag.Nav;
|
|
79
75
|
case VirtualDomElements.Ol:
|
|
80
76
|
return ElementTag.Ol;
|
|
77
|
+
case VirtualDomElements.Option:
|
|
78
|
+
return ElementTag.Option;
|
|
81
79
|
case VirtualDomElements.P:
|
|
82
80
|
return ElementTag.P;
|
|
83
81
|
case VirtualDomElements.Pre:
|
|
84
82
|
return ElementTag.Pre;
|
|
85
|
-
case VirtualDomElements.
|
|
86
|
-
return ElementTag.
|
|
87
|
-
case VirtualDomElements.
|
|
88
|
-
return ElementTag.
|
|
89
|
-
case VirtualDomElements.
|
|
90
|
-
return ElementTag.
|
|
91
|
-
case VirtualDomElements.
|
|
92
|
-
return ElementTag.
|
|
93
|
-
case VirtualDomElements.
|
|
94
|
-
return ElementTag.
|
|
83
|
+
case VirtualDomElements.Search:
|
|
84
|
+
return ElementTag.Search;
|
|
85
|
+
case VirtualDomElements.Section:
|
|
86
|
+
return ElementTag.Section;
|
|
87
|
+
case VirtualDomElements.Select:
|
|
88
|
+
return ElementTag.Select;
|
|
89
|
+
case VirtualDomElements.Span:
|
|
90
|
+
return ElementTag.Span;
|
|
91
|
+
case VirtualDomElements.Table:
|
|
92
|
+
return ElementTag.Table;
|
|
93
|
+
case VirtualDomElements.TBody:
|
|
94
|
+
return ElementTag.TBody;
|
|
95
|
+
case VirtualDomElements.Td:
|
|
96
|
+
return ElementTag.Td;
|
|
97
|
+
case VirtualDomElements.TextArea:
|
|
98
|
+
return ElementTag.TextArea;
|
|
95
99
|
case VirtualDomElements.Tfoot:
|
|
96
100
|
return ElementTag.Tfoot;
|
|
101
|
+
case VirtualDomElements.Th:
|
|
102
|
+
return ElementTag.Th;
|
|
103
|
+
case VirtualDomElements.THead:
|
|
104
|
+
return ElementTag.THead;
|
|
105
|
+
case VirtualDomElements.Time:
|
|
106
|
+
return ElementTag.Time;
|
|
107
|
+
case VirtualDomElements.Tr:
|
|
108
|
+
return ElementTag.Tr;
|
|
97
109
|
case VirtualDomElements.Ul:
|
|
98
110
|
return ElementTag.Ul;
|
|
99
111
|
case VirtualDomElements.Video:
|
|
100
112
|
return ElementTag.Video;
|
|
101
|
-
case VirtualDomElements.TextArea:
|
|
102
|
-
return ElementTag.TextArea;
|
|
103
|
-
case VirtualDomElements.Select:
|
|
104
|
-
return ElementTag.Select;
|
|
105
|
-
case VirtualDomElements.Option:
|
|
106
|
-
return ElementTag.Option;
|
|
107
|
-
case VirtualDomElements.Code:
|
|
108
|
-
return ElementTag.Code;
|
|
109
|
-
case VirtualDomElements.Label:
|
|
110
|
-
return ElementTag.Label;
|
|
111
|
-
case VirtualDomElements.Dt:
|
|
112
|
-
return ElementTag.Dt;
|
|
113
113
|
default:
|
|
114
114
|
throw new Error(`element tag not found ${type}`);
|
|
115
115
|
}
|
|
@@ -2,35 +2,19 @@ import * as Key from "../Key/Key.js";
|
|
|
2
2
|
import * as KeyCode from "../KeyCode/KeyCode.js";
|
|
3
3
|
export const getKeyCode = (key) => {
|
|
4
4
|
switch (key) {
|
|
5
|
+
case Key.Backquote:
|
|
6
|
+
case Key.Backquote2:
|
|
7
|
+
return KeyCode.Backquote;
|
|
8
|
+
case Key.Backslash:
|
|
9
|
+
return KeyCode.Backslash;
|
|
5
10
|
case Key.Backspace:
|
|
6
11
|
return KeyCode.Backspace;
|
|
7
|
-
case Key.
|
|
8
|
-
return KeyCode.
|
|
9
|
-
case Key.
|
|
10
|
-
return KeyCode.
|
|
11
|
-
case Key.
|
|
12
|
-
return KeyCode.
|
|
13
|
-
case Key.Space:
|
|
14
|
-
case Key.Space2:
|
|
15
|
-
return KeyCode.Space;
|
|
16
|
-
case Key.PageUp:
|
|
17
|
-
return KeyCode.PageUp;
|
|
18
|
-
case Key.PageDown:
|
|
19
|
-
return KeyCode.PageDown;
|
|
20
|
-
case Key.End:
|
|
21
|
-
return KeyCode.End;
|
|
22
|
-
case Key.Home:
|
|
23
|
-
return KeyCode.Home;
|
|
24
|
-
case Key.LeftArrow:
|
|
25
|
-
return KeyCode.LeftArrow;
|
|
26
|
-
case Key.UpArrow:
|
|
27
|
-
return KeyCode.UpArrow;
|
|
28
|
-
case Key.RightArrow:
|
|
29
|
-
return KeyCode.RightArrow;
|
|
30
|
-
case Key.DownArrow:
|
|
31
|
-
return KeyCode.DownArrow;
|
|
32
|
-
case Key.Insert:
|
|
33
|
-
return KeyCode.Insert;
|
|
12
|
+
case Key.BracketLeft:
|
|
13
|
+
return KeyCode.BracketLeft;
|
|
14
|
+
case Key.BracketRight:
|
|
15
|
+
return KeyCode.BracketRight;
|
|
16
|
+
case Key.Comma:
|
|
17
|
+
return KeyCode.Comma;
|
|
34
18
|
case Key.Delete:
|
|
35
19
|
return KeyCode.Delete;
|
|
36
20
|
case Key.Digit0:
|
|
@@ -53,6 +37,68 @@ export const getKeyCode = (key) => {
|
|
|
53
37
|
return KeyCode.Digit8;
|
|
54
38
|
case Key.Digit9:
|
|
55
39
|
return KeyCode.Digit9;
|
|
40
|
+
case Key.DownArrow:
|
|
41
|
+
return KeyCode.DownArrow;
|
|
42
|
+
case Key.End:
|
|
43
|
+
return KeyCode.End;
|
|
44
|
+
case Key.Enter:
|
|
45
|
+
return KeyCode.Enter;
|
|
46
|
+
case Key.Equal:
|
|
47
|
+
return KeyCode.Equal;
|
|
48
|
+
case Key.Escape:
|
|
49
|
+
return KeyCode.Escape;
|
|
50
|
+
case Key.F1:
|
|
51
|
+
return KeyCode.F1;
|
|
52
|
+
case Key.F10:
|
|
53
|
+
return KeyCode.F10;
|
|
54
|
+
case Key.F11:
|
|
55
|
+
return KeyCode.F11;
|
|
56
|
+
case Key.F12:
|
|
57
|
+
return KeyCode.F12;
|
|
58
|
+
case Key.F13:
|
|
59
|
+
return KeyCode.F13;
|
|
60
|
+
case Key.F14:
|
|
61
|
+
return KeyCode.F14;
|
|
62
|
+
case Key.F15:
|
|
63
|
+
return KeyCode.F15;
|
|
64
|
+
case Key.F16:
|
|
65
|
+
return KeyCode.F16;
|
|
66
|
+
case Key.F17:
|
|
67
|
+
return KeyCode.F17;
|
|
68
|
+
case Key.F18:
|
|
69
|
+
return KeyCode.F18;
|
|
70
|
+
case Key.F19:
|
|
71
|
+
return KeyCode.F19;
|
|
72
|
+
case Key.F2:
|
|
73
|
+
return KeyCode.F2;
|
|
74
|
+
case Key.F20:
|
|
75
|
+
return KeyCode.F20;
|
|
76
|
+
case Key.F21:
|
|
77
|
+
return KeyCode.F21;
|
|
78
|
+
case Key.F22:
|
|
79
|
+
return KeyCode.F22;
|
|
80
|
+
case Key.F23:
|
|
81
|
+
return KeyCode.F23;
|
|
82
|
+
case Key.F24:
|
|
83
|
+
return KeyCode.F24;
|
|
84
|
+
case Key.F3:
|
|
85
|
+
return KeyCode.F3;
|
|
86
|
+
case Key.F4:
|
|
87
|
+
return KeyCode.F4;
|
|
88
|
+
case Key.F5:
|
|
89
|
+
return KeyCode.F5;
|
|
90
|
+
case Key.F6:
|
|
91
|
+
return KeyCode.F6;
|
|
92
|
+
case Key.F7:
|
|
93
|
+
return KeyCode.F7;
|
|
94
|
+
case Key.F8:
|
|
95
|
+
return KeyCode.F8;
|
|
96
|
+
case Key.F9:
|
|
97
|
+
return KeyCode.F9;
|
|
98
|
+
case Key.Home:
|
|
99
|
+
return KeyCode.Home;
|
|
100
|
+
case Key.Insert:
|
|
101
|
+
return KeyCode.Insert;
|
|
56
102
|
case Key.KeyA:
|
|
57
103
|
return KeyCode.KeyA;
|
|
58
104
|
case Key.KeyB:
|
|
@@ -105,81 +151,35 @@ export const getKeyCode = (key) => {
|
|
|
105
151
|
return KeyCode.KeyY;
|
|
106
152
|
case Key.KeyZ:
|
|
107
153
|
return KeyCode.KeyZ;
|
|
108
|
-
case Key.
|
|
109
|
-
return KeyCode.
|
|
110
|
-
case Key.F2:
|
|
111
|
-
return KeyCode.F2;
|
|
112
|
-
case Key.F3:
|
|
113
|
-
return KeyCode.F3;
|
|
114
|
-
case Key.F4:
|
|
115
|
-
return KeyCode.F4;
|
|
116
|
-
case Key.F5:
|
|
117
|
-
return KeyCode.F5;
|
|
118
|
-
case Key.F6:
|
|
119
|
-
return KeyCode.F6;
|
|
120
|
-
case Key.F7:
|
|
121
|
-
return KeyCode.F7;
|
|
122
|
-
case Key.F8:
|
|
123
|
-
return KeyCode.F8;
|
|
124
|
-
case Key.F9:
|
|
125
|
-
return KeyCode.F9;
|
|
126
|
-
case Key.F10:
|
|
127
|
-
return KeyCode.F10;
|
|
128
|
-
case Key.F11:
|
|
129
|
-
return KeyCode.F11;
|
|
130
|
-
case Key.F12:
|
|
131
|
-
return KeyCode.F12;
|
|
132
|
-
case Key.F13:
|
|
133
|
-
return KeyCode.F13;
|
|
134
|
-
case Key.F14:
|
|
135
|
-
return KeyCode.F14;
|
|
136
|
-
case Key.F15:
|
|
137
|
-
return KeyCode.F15;
|
|
138
|
-
case Key.F16:
|
|
139
|
-
return KeyCode.F16;
|
|
140
|
-
case Key.F17:
|
|
141
|
-
return KeyCode.F17;
|
|
142
|
-
case Key.F18:
|
|
143
|
-
return KeyCode.F18;
|
|
144
|
-
case Key.F19:
|
|
145
|
-
return KeyCode.F19;
|
|
146
|
-
case Key.F20:
|
|
147
|
-
return KeyCode.F20;
|
|
148
|
-
case Key.F21:
|
|
149
|
-
return KeyCode.F21;
|
|
150
|
-
case Key.F22:
|
|
151
|
-
return KeyCode.F22;
|
|
152
|
-
case Key.F23:
|
|
153
|
-
return KeyCode.F23;
|
|
154
|
-
case Key.F24:
|
|
155
|
-
return KeyCode.F24;
|
|
156
|
-
case Key.SemiColon:
|
|
157
|
-
return KeyCode.SemiColon;
|
|
158
|
-
case Key.Equal:
|
|
159
|
-
return KeyCode.Equal;
|
|
160
|
-
case Key.Comma:
|
|
161
|
-
return KeyCode.Comma;
|
|
154
|
+
case Key.LeftArrow:
|
|
155
|
+
return KeyCode.LeftArrow;
|
|
162
156
|
case Key.Minus:
|
|
163
157
|
return KeyCode.Minus;
|
|
158
|
+
case Key.PageDown:
|
|
159
|
+
return KeyCode.PageDown;
|
|
160
|
+
case Key.PageUp:
|
|
161
|
+
return KeyCode.PageUp;
|
|
164
162
|
case Key.Period:
|
|
165
163
|
return KeyCode.Period;
|
|
166
|
-
case Key.
|
|
167
|
-
return KeyCode.
|
|
168
|
-
case Key.Backquote:
|
|
169
|
-
case Key.Backquote2:
|
|
170
|
-
return KeyCode.Backquote;
|
|
171
|
-
case Key.BracketLeft:
|
|
172
|
-
return KeyCode.BracketLeft;
|
|
173
|
-
case Key.Backslash:
|
|
174
|
-
return KeyCode.Backslash;
|
|
175
|
-
case Key.BracketRight:
|
|
176
|
-
return KeyCode.BracketRight;
|
|
164
|
+
case Key.Plus:
|
|
165
|
+
return KeyCode.Plus;
|
|
177
166
|
case Key.Quote:
|
|
178
167
|
return KeyCode.Quote;
|
|
168
|
+
case Key.RightArrow:
|
|
169
|
+
return KeyCode.RightArrow;
|
|
170
|
+
case Key.SemiColon:
|
|
171
|
+
return KeyCode.SemiColon;
|
|
172
|
+
case Key.Slash:
|
|
173
|
+
return KeyCode.Slash;
|
|
174
|
+
case Key.Space:
|
|
175
|
+
case Key.Space2:
|
|
176
|
+
return KeyCode.Space;
|
|
179
177
|
case Key.Star:
|
|
180
178
|
return KeyCode.Star;
|
|
181
|
-
case Key.
|
|
182
|
-
return KeyCode.
|
|
179
|
+
case Key.Tab:
|
|
180
|
+
return KeyCode.Tab;
|
|
181
|
+
case Key.UpArrow:
|
|
182
|
+
return KeyCode.UpArrow;
|
|
183
183
|
default:
|
|
184
184
|
return KeyCode.Unknown;
|
|
185
185
|
}
|
|
@@ -2,34 +2,14 @@ import * as KeyCode from "../KeyCode/KeyCode.js";
|
|
|
2
2
|
import * as KeyCodeString from "../KeyCodeString/KeyCodeString.js";
|
|
3
3
|
export const getKeyCodeString = (keyCode) => {
|
|
4
4
|
switch (keyCode) {
|
|
5
|
+
case KeyCode.Backquote:
|
|
6
|
+
return KeyCodeString.Backquote;
|
|
7
|
+
case KeyCode.Backslash:
|
|
8
|
+
return KeyCodeString.Backslash;
|
|
5
9
|
case KeyCode.Backspace:
|
|
6
10
|
return KeyCodeString.Backspace;
|
|
7
|
-
case KeyCode.
|
|
8
|
-
return KeyCodeString.
|
|
9
|
-
case KeyCode.Escape:
|
|
10
|
-
return KeyCodeString.Escape;
|
|
11
|
-
case KeyCode.Enter:
|
|
12
|
-
return KeyCodeString.Enter;
|
|
13
|
-
case KeyCode.Space:
|
|
14
|
-
return KeyCodeString.Space;
|
|
15
|
-
case KeyCode.PageUp:
|
|
16
|
-
return KeyCodeString.PageUp;
|
|
17
|
-
case KeyCode.PageDown:
|
|
18
|
-
return KeyCodeString.PageDown;
|
|
19
|
-
case KeyCode.End:
|
|
20
|
-
return KeyCodeString.End;
|
|
21
|
-
case KeyCode.Home:
|
|
22
|
-
return KeyCodeString.Home;
|
|
23
|
-
case KeyCode.LeftArrow:
|
|
24
|
-
return KeyCodeString.LeftArrow;
|
|
25
|
-
case KeyCode.UpArrow:
|
|
26
|
-
return KeyCodeString.UpArrow;
|
|
27
|
-
case KeyCode.RightArrow:
|
|
28
|
-
return KeyCodeString.RightArrow;
|
|
29
|
-
case KeyCode.DownArrow:
|
|
30
|
-
return KeyCodeString.DownArrow;
|
|
31
|
-
case KeyCode.Insert:
|
|
32
|
-
return KeyCodeString.Insert;
|
|
11
|
+
case KeyCode.Comma:
|
|
12
|
+
return KeyCodeString.Comma;
|
|
33
13
|
case KeyCode.Delete:
|
|
34
14
|
return KeyCodeString.Delete;
|
|
35
15
|
case KeyCode.Digit0:
|
|
@@ -52,6 +32,32 @@ export const getKeyCodeString = (keyCode) => {
|
|
|
52
32
|
return KeyCodeString.Digit8;
|
|
53
33
|
case KeyCode.Digit9:
|
|
54
34
|
return KeyCodeString.Digit9;
|
|
35
|
+
case KeyCode.DownArrow:
|
|
36
|
+
return KeyCodeString.DownArrow;
|
|
37
|
+
case KeyCode.End:
|
|
38
|
+
return KeyCodeString.End;
|
|
39
|
+
case KeyCode.Enter:
|
|
40
|
+
return KeyCodeString.Enter;
|
|
41
|
+
case KeyCode.Equal:
|
|
42
|
+
return KeyCodeString.Equal;
|
|
43
|
+
case KeyCode.Escape:
|
|
44
|
+
return KeyCodeString.Escape;
|
|
45
|
+
case KeyCode.F1:
|
|
46
|
+
return KeyCodeString.F1;
|
|
47
|
+
case KeyCode.F2:
|
|
48
|
+
return KeyCodeString.F2;
|
|
49
|
+
case KeyCode.F3:
|
|
50
|
+
return KeyCodeString.F3;
|
|
51
|
+
case KeyCode.F4:
|
|
52
|
+
return KeyCodeString.F4;
|
|
53
|
+
case KeyCode.F5:
|
|
54
|
+
return KeyCodeString.F5;
|
|
55
|
+
case KeyCode.F6:
|
|
56
|
+
return KeyCodeString.F6;
|
|
57
|
+
case KeyCode.Home:
|
|
58
|
+
return KeyCodeString.Home;
|
|
59
|
+
case KeyCode.Insert:
|
|
60
|
+
return KeyCodeString.Insert;
|
|
55
61
|
case KeyCode.KeyA:
|
|
56
62
|
return KeyCodeString.KeyA;
|
|
57
63
|
case KeyCode.KeyB:
|
|
@@ -104,32 +110,26 @@ export const getKeyCodeString = (keyCode) => {
|
|
|
104
110
|
return KeyCodeString.KeyY;
|
|
105
111
|
case KeyCode.KeyZ:
|
|
106
112
|
return KeyCodeString.KeyZ;
|
|
107
|
-
case KeyCode.
|
|
108
|
-
return KeyCodeString.
|
|
109
|
-
case KeyCode.
|
|
110
|
-
return KeyCodeString.
|
|
111
|
-
case KeyCode.
|
|
112
|
-
return KeyCodeString.
|
|
113
|
-
case KeyCode.
|
|
114
|
-
return KeyCodeString.
|
|
115
|
-
case KeyCode.F5:
|
|
116
|
-
return KeyCodeString.F5;
|
|
117
|
-
case KeyCode.F6:
|
|
118
|
-
return KeyCodeString.F6;
|
|
119
|
-
case KeyCode.Backslash:
|
|
120
|
-
return KeyCodeString.Backslash;
|
|
121
|
-
case KeyCode.Equal:
|
|
122
|
-
return KeyCodeString.Equal;
|
|
123
|
-
case KeyCode.Comma:
|
|
124
|
-
return KeyCodeString.Comma;
|
|
125
|
-
case KeyCode.Backquote:
|
|
126
|
-
return KeyCodeString.Backquote;
|
|
113
|
+
case KeyCode.LeftArrow:
|
|
114
|
+
return KeyCodeString.LeftArrow;
|
|
115
|
+
case KeyCode.Minus:
|
|
116
|
+
return KeyCodeString.Minus;
|
|
117
|
+
case KeyCode.PageDown:
|
|
118
|
+
return KeyCodeString.PageDown;
|
|
119
|
+
case KeyCode.PageUp:
|
|
120
|
+
return KeyCodeString.PageUp;
|
|
127
121
|
case KeyCode.Plus:
|
|
128
122
|
return KeyCodeString.Plus;
|
|
123
|
+
case KeyCode.RightArrow:
|
|
124
|
+
return KeyCodeString.RightArrow;
|
|
125
|
+
case KeyCode.Space:
|
|
126
|
+
return KeyCodeString.Space;
|
|
129
127
|
case KeyCode.Star:
|
|
130
128
|
return KeyCodeString.Star;
|
|
131
|
-
case KeyCode.
|
|
132
|
-
return KeyCodeString.
|
|
129
|
+
case KeyCode.Tab:
|
|
130
|
+
return KeyCodeString.Tab;
|
|
131
|
+
case KeyCode.UpArrow:
|
|
132
|
+
return KeyCodeString.UpArrow;
|
|
133
133
|
default:
|
|
134
134
|
return KeyCodeString.Unknown;
|
|
135
135
|
}
|
|
@@ -2,12 +2,12 @@ import * as WidgetId from "../WidgetId/WidgetId.js";
|
|
|
2
2
|
import * as WidgetName from "../WidgetName/WidgetName.js";
|
|
3
3
|
export const getWidgetName = (widgetId) => {
|
|
4
4
|
switch (widgetId) {
|
|
5
|
-
case WidgetId.Find:
|
|
6
|
-
return WidgetName.FindWidget;
|
|
7
5
|
case WidgetId.ColorPicker:
|
|
8
6
|
return WidgetName.ColorPicker;
|
|
9
7
|
case WidgetId.Completion:
|
|
10
8
|
return WidgetName.EditorCompletion;
|
|
9
|
+
case WidgetId.Find:
|
|
10
|
+
return WidgetName.FindWidget;
|
|
11
11
|
case WidgetId.SourceAction:
|
|
12
12
|
return WidgetName.EditorSourceActions;
|
|
13
13
|
default:
|
package/dist/parts/Main/Main.js
CHANGED
|
@@ -26,6 +26,7 @@ export * as ParseKey from "../ParseKey/ParseKey.js";
|
|
|
26
26
|
export * as PatchType from "../PatchType/PatchType.js";
|
|
27
27
|
export * as PlatformType from "../PlatformType/PlatformType.js";
|
|
28
28
|
export * as QuickPickEntryId from "../QuickPickEntryId/QuickPickEntryId.js";
|
|
29
|
+
export * as QuickPickPrefix from "../QuickPickPrefix/QuickPickPrefix.js";
|
|
29
30
|
export * as RpcId from "../RpcId/RpcId.js";
|
|
30
31
|
export * as SideBarLocationType from "../SideBarLocationType/SideBarLocationType.js";
|
|
31
32
|
export * as TextSearchResultType from "../TextSearchResultType/TextSearchResultType.js";
|