LSP-364 [lsp] fix fileTemplates loading

1. Switch to platform PathClassLoader
2. Build LSP zips with dir index

GitOrigin-RevId: 1e1aca960d41f7f2d2bf67b0b2b637f36408f618
This commit is contained in:
Gregory.Shrago
2026-02-09 19:39:53 +00:00
committed by intellij-monorepo-bot
parent e4ee59e043
commit 2d970ca167
@@ -38,6 +38,11 @@ internal interface NativeFileHandler {
suspend fun sign(name: String, dataSupplier: () -> ByteBuffer): Path?
}
suspend fun buildUncompressJarWithDirEntries(targetFile: Path, sources: List<Source>) {
// addDirEntries=true has no effect when compress=true
buildJar(targetFile = targetFile, sources = sources, nativeFileHandler = null, addDirEntries = true, compress = false)
}
suspend fun buildJar(targetFile: Path, sources: List<Source>, compress: Boolean = false) {
buildJar(targetFile = targetFile, sources = sources, nativeFileHandler = null, addDirEntries = false, compress = compress)
}