@lvce-editor/source-control-worker 2.0.0 → 2.2.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.
|
@@ -1045,13 +1045,13 @@ const Text = 12;
|
|
|
1045
1045
|
const Img = 17;
|
|
1046
1046
|
const TextArea = 62;
|
|
1047
1047
|
|
|
1048
|
-
const
|
|
1048
|
+
const Button$1 = 'event.button';
|
|
1049
1049
|
const ClientX = 'event.clientX';
|
|
1050
1050
|
const ClientY = 'event.clientY';
|
|
1051
|
-
const Button$1 = 'event.button';
|
|
1052
1051
|
const DeltaMode = 'event.deltaMode';
|
|
1053
1052
|
const DeltaY = 'event.deltaY';
|
|
1054
1053
|
const TargetName = 'event.target.name';
|
|
1054
|
+
const TargetValue = 'event.target.value';
|
|
1055
1055
|
|
|
1056
1056
|
const User = 1;
|
|
1057
1057
|
|
|
@@ -1196,6 +1196,11 @@ const sendMessagePortToMarkdownWorker = async (port, rpcId) => {
|
|
|
1196
1196
|
// @ts-ignore
|
|
1197
1197
|
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToMarkdownWorker', port, command, rpcId);
|
|
1198
1198
|
};
|
|
1199
|
+
const sendMessagePortToIconThemeWorker = async (port, rpcId) => {
|
|
1200
|
+
const command = 'IconTheme.handleMessagePort';
|
|
1201
|
+
// @ts-ignore
|
|
1202
|
+
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToIconThemeWorker', port, command, rpcId);
|
|
1203
|
+
};
|
|
1199
1204
|
const sendMessagePortToFileSystemWorker = async (port, rpcId) => {
|
|
1200
1205
|
const command = 'FileSystem.handleMessagePort';
|
|
1201
1206
|
// @ts-ignore
|
|
@@ -1462,6 +1467,7 @@ const RendererWorker = {
|
|
|
1462
1467
|
sendMessagePortToErrorWorker,
|
|
1463
1468
|
sendMessagePortToExtensionHostWorker: sendMessagePortToExtensionHostWorker$1,
|
|
1464
1469
|
sendMessagePortToFileSystemWorker,
|
|
1470
|
+
sendMessagePortToIconThemeWorker,
|
|
1465
1471
|
sendMessagePortToMarkdownWorker,
|
|
1466
1472
|
sendMessagePortToRendererProcess,
|
|
1467
1473
|
sendMessagePortToSearchProcess,
|
|
@@ -1721,6 +1727,12 @@ const pathBaseName = path => {
|
|
|
1721
1727
|
return path.slice(path.lastIndexOf('/') + 1);
|
|
1722
1728
|
};
|
|
1723
1729
|
|
|
1730
|
+
const getActualDecorationIcon = (iconDefinitions, icon) => {
|
|
1731
|
+
if (typeof icon === 'number') {
|
|
1732
|
+
return iconDefinitions[icon];
|
|
1733
|
+
}
|
|
1734
|
+
return icon;
|
|
1735
|
+
};
|
|
1724
1736
|
const getDisplayItemsGroup = (group, expandedGroups, iconDefinitions) => {
|
|
1725
1737
|
const displayItems = [];
|
|
1726
1738
|
const {
|
|
@@ -1762,10 +1774,7 @@ const getDisplayItemsGroup = (group, expandedGroups, iconDefinitions) => {
|
|
|
1762
1774
|
} = item;
|
|
1763
1775
|
const baseName = pathBaseName(file);
|
|
1764
1776
|
const folderName = file.slice(0, -baseName.length - 1);
|
|
1765
|
-
|
|
1766
|
-
if (typeof icon === 'number') {
|
|
1767
|
-
actualDecorationIcon = iconDefinitions[icon];
|
|
1768
|
-
}
|
|
1777
|
+
const actualDecorationIcon = getActualDecorationIcon(iconDefinitions, icon);
|
|
1769
1778
|
displayItems.push({
|
|
1770
1779
|
file,
|
|
1771
1780
|
label: baseName,
|