@lvce-editor/explorer-view 7.24.2 → 7.26.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/explorerViewWorkerMain.js +5 -3
- package/dist/settings.json +56 -0
- package/package.json +1 -1
|
@@ -6538,7 +6538,7 @@ const set = rpc => {
|
|
|
6538
6538
|
state.connected = true;
|
|
6539
6539
|
};
|
|
6540
6540
|
|
|
6541
|
-
const handleMessagePort = async (port, viewletCommandMap) => {
|
|
6541
|
+
const handleMessagePort = async (port, viewletCommandMap, setAsRendererProcess = true) => {
|
|
6542
6542
|
const executeViewletCommand = async (uid, command, ...args) => {
|
|
6543
6543
|
const fn = viewletCommandMap[`Explorer.${command}`];
|
|
6544
6544
|
if (typeof fn !== 'function') {
|
|
@@ -6553,7 +6553,9 @@ const handleMessagePort = async (port, viewletCommandMap) => {
|
|
|
6553
6553
|
},
|
|
6554
6554
|
messagePort: port
|
|
6555
6555
|
});
|
|
6556
|
-
|
|
6556
|
+
if (setAsRendererProcess) {
|
|
6557
|
+
set(rpc);
|
|
6558
|
+
}
|
|
6557
6559
|
};
|
|
6558
6560
|
|
|
6559
6561
|
const scrollInto = (index, minLineY, maxLineY) => {
|
|
@@ -8345,7 +8347,7 @@ const updateEditingValue = async (state, value, inputSource = User) => {
|
|
|
8345
8347
|
};
|
|
8346
8348
|
};
|
|
8347
8349
|
|
|
8348
|
-
const handleDirectMessagePort = port => handleMessagePort(port, commandMap);
|
|
8350
|
+
const handleDirectMessagePort = (port, setAsRendererProcess) => handleMessagePort(port, commandMap, setAsRendererProcess);
|
|
8349
8351
|
const commandMap = {
|
|
8350
8352
|
'Explorer.acceptEdit': wrapListItemCommand(acceptEdit),
|
|
8351
8353
|
'Explorer.cancelEdit': wrapListItemCommand(cancelEdit),
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"category": "explorer",
|
|
4
|
+
"description": "Controls whether the Explorer uses chevrons instead of folder icons to show expanded and collapsed folders.",
|
|
5
|
+
"heading": "Use Chevrons",
|
|
6
|
+
"id": "explorer.useChevrons",
|
|
7
|
+
"type": 3,
|
|
8
|
+
"value": "true"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"category": "explorer",
|
|
12
|
+
"description": "Controls whether the Explorer asks for confirmation before deleting files and folders.",
|
|
13
|
+
"heading": "Confirm Delete",
|
|
14
|
+
"id": "explorer.confirmdelete",
|
|
15
|
+
"type": 3,
|
|
16
|
+
"value": "true"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"category": "explorer",
|
|
20
|
+
"description": "Controls whether the Explorer asks for confirmation before pasting files and folders.",
|
|
21
|
+
"heading": "Confirm Paste",
|
|
22
|
+
"id": "explorer.confirmpaste",
|
|
23
|
+
"type": 3,
|
|
24
|
+
"value": "false"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"category": "explorer",
|
|
28
|
+
"description": "Controls whether files ignored by Git are decorated in the Explorer.",
|
|
29
|
+
"heading": "Git Ignore Decorations",
|
|
30
|
+
"id": "explorer.gitIgnoreDecorations",
|
|
31
|
+
"type": 3,
|
|
32
|
+
"value": "true"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"category": "explorer",
|
|
36
|
+
"description": "Controls whether source control decorations are shown in the Explorer.",
|
|
37
|
+
"heading": "Source Control Decorations",
|
|
38
|
+
"id": "explorer.sourceControlDecorations",
|
|
39
|
+
"type": 3,
|
|
40
|
+
"value": "true"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"category": "explorer",
|
|
44
|
+
"description": "Configures glob patterns for excluding files and folders from the Explorer.",
|
|
45
|
+
"heading": "Exclude",
|
|
46
|
+
"id": "files.exclude",
|
|
47
|
+
"type": 4,
|
|
48
|
+
"value": {
|
|
49
|
+
"**/.DS_Store": true,
|
|
50
|
+
"**/.git": true,
|
|
51
|
+
"**/.hg": true,
|
|
52
|
+
"**/.svn": true,
|
|
53
|
+
"**/Thumbs.db": true
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
]
|