@lvce-editor/title-bar-worker 4.14.1 → 4.15.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/titleBarWorkerMain.js +74 -67
- package/package.json +1 -1
|
@@ -54,61 +54,6 @@ class VError extends Error {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
class AssertionError extends Error {
|
|
58
|
-
constructor(message) {
|
|
59
|
-
super(message);
|
|
60
|
-
this.name = 'AssertionError';
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
const Object$1 = 1;
|
|
64
|
-
const Number$1 = 2;
|
|
65
|
-
const Array$1 = 3;
|
|
66
|
-
const String$1 = 4;
|
|
67
|
-
const Boolean$1 = 5;
|
|
68
|
-
const Function = 6;
|
|
69
|
-
const Null = 7;
|
|
70
|
-
const Unknown$1 = 8;
|
|
71
|
-
const getType = value => {
|
|
72
|
-
switch (typeof value) {
|
|
73
|
-
case 'number':
|
|
74
|
-
return Number$1;
|
|
75
|
-
case 'function':
|
|
76
|
-
return Function;
|
|
77
|
-
case 'string':
|
|
78
|
-
return String$1;
|
|
79
|
-
case 'object':
|
|
80
|
-
if (value === null) {
|
|
81
|
-
return Null;
|
|
82
|
-
}
|
|
83
|
-
if (Array.isArray(value)) {
|
|
84
|
-
return Array$1;
|
|
85
|
-
}
|
|
86
|
-
return Object$1;
|
|
87
|
-
case 'boolean':
|
|
88
|
-
return Boolean$1;
|
|
89
|
-
default:
|
|
90
|
-
return Unknown$1;
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
const object = value => {
|
|
94
|
-
const type = getType(value);
|
|
95
|
-
if (type !== Object$1) {
|
|
96
|
-
throw new AssertionError('expected value to be of type object');
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
const number = value => {
|
|
100
|
-
const type = getType(value);
|
|
101
|
-
if (type !== Number$1) {
|
|
102
|
-
throw new AssertionError('expected value to be of type number');
|
|
103
|
-
}
|
|
104
|
-
};
|
|
105
|
-
const array = value => {
|
|
106
|
-
const type = getType(value);
|
|
107
|
-
if (type !== Array$1) {
|
|
108
|
-
throw new AssertionError('expected value to be of type array');
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
|
|
112
57
|
const isMessagePort = value => {
|
|
113
58
|
return value && value instanceof MessagePort;
|
|
114
59
|
};
|
|
@@ -1383,7 +1328,7 @@ const Backslash$2 = 91;
|
|
|
1383
1328
|
const Star$1 = 131;
|
|
1384
1329
|
const Plus$1 = 132;
|
|
1385
1330
|
|
|
1386
|
-
const Unknown = 'Unknown';
|
|
1331
|
+
const Unknown$1 = 'Unknown';
|
|
1387
1332
|
const Backspace = 'Backspace';
|
|
1388
1333
|
const Tab = 'Tab';
|
|
1389
1334
|
const Enter = 'Enter';
|
|
@@ -1516,7 +1461,7 @@ const keyCodeStringMap = {
|
|
|
1516
1461
|
[UpArrow$1]: UpArrow
|
|
1517
1462
|
};
|
|
1518
1463
|
const getKeyCodeString = keyCode => {
|
|
1519
|
-
return keyCodeStringMap[keyCode] || Unknown;
|
|
1464
|
+
return keyCodeStringMap[keyCode] || Unknown$1;
|
|
1520
1465
|
};
|
|
1521
1466
|
|
|
1522
1467
|
const CtrlCmd = 1 << 11 >>> 0;
|
|
@@ -1558,6 +1503,61 @@ const SetFocusContext = 'Viewlet.setFocusContext';
|
|
|
1558
1503
|
|
|
1559
1504
|
const FocusTitleBarMenuBar = 26;
|
|
1560
1505
|
|
|
1506
|
+
class AssertionError extends Error {
|
|
1507
|
+
constructor(message) {
|
|
1508
|
+
super(message);
|
|
1509
|
+
this.name = 'AssertionError';
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
const Object$1 = 1;
|
|
1513
|
+
const Number$1 = 2;
|
|
1514
|
+
const Array$1 = 3;
|
|
1515
|
+
const String$1 = 4;
|
|
1516
|
+
const Boolean$1 = 5;
|
|
1517
|
+
const Function = 6;
|
|
1518
|
+
const Null = 7;
|
|
1519
|
+
const Unknown = 8;
|
|
1520
|
+
const getType = value => {
|
|
1521
|
+
switch (typeof value) {
|
|
1522
|
+
case 'number':
|
|
1523
|
+
return Number$1;
|
|
1524
|
+
case 'function':
|
|
1525
|
+
return Function;
|
|
1526
|
+
case 'string':
|
|
1527
|
+
return String$1;
|
|
1528
|
+
case 'object':
|
|
1529
|
+
if (value === null) {
|
|
1530
|
+
return Null;
|
|
1531
|
+
}
|
|
1532
|
+
if (Array.isArray(value)) {
|
|
1533
|
+
return Array$1;
|
|
1534
|
+
}
|
|
1535
|
+
return Object$1;
|
|
1536
|
+
case 'boolean':
|
|
1537
|
+
return Boolean$1;
|
|
1538
|
+
default:
|
|
1539
|
+
return Unknown;
|
|
1540
|
+
}
|
|
1541
|
+
};
|
|
1542
|
+
const object = value => {
|
|
1543
|
+
const type = getType(value);
|
|
1544
|
+
if (type !== Object$1) {
|
|
1545
|
+
throw new AssertionError('expected value to be of type object');
|
|
1546
|
+
}
|
|
1547
|
+
};
|
|
1548
|
+
const number = value => {
|
|
1549
|
+
const type = getType(value);
|
|
1550
|
+
if (type !== Number$1) {
|
|
1551
|
+
throw new AssertionError('expected value to be of type number');
|
|
1552
|
+
}
|
|
1553
|
+
};
|
|
1554
|
+
const array = value => {
|
|
1555
|
+
const type = getType(value);
|
|
1556
|
+
if (type !== Array$1) {
|
|
1557
|
+
throw new AssertionError('expected value to be of type array');
|
|
1558
|
+
}
|
|
1559
|
+
};
|
|
1560
|
+
|
|
1561
1561
|
const {
|
|
1562
1562
|
invoke,
|
|
1563
1563
|
invokeAndTransfer,
|
|
@@ -3031,48 +3031,55 @@ const getMenuEntries$1 = () => {
|
|
|
3031
3031
|
id: 'editorLayout',
|
|
3032
3032
|
label: i18nString(EditorLayout)
|
|
3033
3033
|
}, menuEntrySeparator, {
|
|
3034
|
-
|
|
3034
|
+
args: ['Explorer'],
|
|
3035
|
+
command: 'Layout.openSideBarViewlet',
|
|
3035
3036
|
flags: None,
|
|
3036
3037
|
id: 'explorer',
|
|
3037
3038
|
label: i18nString(Explorer)
|
|
3038
3039
|
}, {
|
|
3039
|
-
|
|
3040
|
+
args: ['Search'],
|
|
3041
|
+
command: 'Layout.openSideBarViewlet',
|
|
3040
3042
|
flags: None,
|
|
3041
3043
|
id: 'search',
|
|
3042
3044
|
label: i18nString(Search)
|
|
3043
3045
|
}, {
|
|
3044
|
-
|
|
3046
|
+
args: ['Source Control'],
|
|
3047
|
+
command: 'Layout.openSideBarViewlet',
|
|
3045
3048
|
flags: None,
|
|
3046
3049
|
id: 'sourceControl',
|
|
3047
3050
|
label: i18nString(SourceControl)
|
|
3048
3051
|
}, {
|
|
3049
|
-
|
|
3052
|
+
args: ['Run And Debug'],
|
|
3053
|
+
command: 'Layout.openSideBarViewlet',
|
|
3050
3054
|
flags: None,
|
|
3051
3055
|
id: 'run',
|
|
3052
3056
|
label: i18nString(Run$1)
|
|
3053
3057
|
}, {
|
|
3054
|
-
|
|
3058
|
+
args: ['Extensions'],
|
|
3059
|
+
command: 'Layout.openSideBarViewlet',
|
|
3055
3060
|
flags: None,
|
|
3056
3061
|
id: 'extensions',
|
|
3057
3062
|
label: i18nString(Extensions)
|
|
3058
3063
|
}, menuEntrySeparator, {
|
|
3059
|
-
command: '
|
|
3064
|
+
command: 'Layout.openChat',
|
|
3060
3065
|
flags: None,
|
|
3061
3066
|
id: 'chat',
|
|
3062
3067
|
label: i18nString(Chat)
|
|
3063
3068
|
}, menuEntrySeparator, {
|
|
3064
|
-
|
|
3069
|
+
args: ['Problems'],
|
|
3070
|
+
command: 'Layout.showPanel',
|
|
3065
3071
|
flags: None,
|
|
3066
3072
|
id: 'problems',
|
|
3067
3073
|
label: i18nString(Problems)
|
|
3068
3074
|
}, {
|
|
3069
|
-
|
|
3075
|
+
args: ['Output'],
|
|
3076
|
+
command: 'Layout.showPanel',
|
|
3070
3077
|
flags: None,
|
|
3071
3078
|
id: 'output',
|
|
3072
3079
|
label: i18nString(Output)
|
|
3073
3080
|
}, {
|
|
3074
|
-
args: ['
|
|
3075
|
-
command: 'Layout.
|
|
3081
|
+
args: ['Terminals'],
|
|
3082
|
+
command: 'Layout.showPanel',
|
|
3076
3083
|
flags: None,
|
|
3077
3084
|
id: 'terminal',
|
|
3078
3085
|
label: i18nString(Terminal$1)
|