mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
tree: twistie rendering participant
This commit is contained in:
@@ -17,6 +17,10 @@
|
||||
.tl-contents {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.monaco-list-row:hover:not(.selected):not(.focused) {
|
||||
background: gainsboro !important;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
@@ -133,7 +137,7 @@
|
||||
element,
|
||||
collapsible: element.type === 'dir'
|
||||
}));
|
||||
c(els);
|
||||
setTimeout(() => c(els), 2500);
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
@@ -46,6 +46,14 @@ async function readdir(relativePath) {
|
||||
}
|
||||
}
|
||||
|
||||
result.sort((a, b) => {
|
||||
if (a.type === b.type) {
|
||||
return a.name < b.name ? -1 : 1;
|
||||
}
|
||||
|
||||
return a.type === 'dir' ? -1 : 1;
|
||||
});
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user