feat(editor): semantic column navigation for CTE columns

This commit is contained in:
大峰 authored and GitHub committed 2026-09-18 15:06:37 +08:00
1 parent 7c51454bfd
commit b44e1080a8
11 files changed
+1456 -6

No files matched your search

+8
View File
@@ -103,6 +103,14 @@ fn is_valid_jar_file(path: &Path) -> bool {
if !path.is_file() {
return false;
}
// Unzipping the manifest goes through zlib's inflate, which reserves a large
// buffer on the stack. Run it on a dedicated thread so it gets a full, fresh
// stack instead of whatever headroom is left at the bottom of a deep async
// call chain (that chain can already consume most of a tokio worker stack).
std::thread::scope(|scope| scope.spawn(|| read_jar_manifest(path)).join().unwrap_or(false))
}
fn read_jar_manifest(path: &Path) -> bool {
let Some(file) = File::open(path).ok() else {
return false;
};