You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add configurable JVM memory settings for jdtls (#238)
Add `get_max_memory` and `get_min_memory` config functions to read heap
size settings. Implement `parse_memory_value` to convert JVM memory
strings (e.g. "2G", "512m") to bytes. Update launch args to use
configured values with validation to ensure min doesn't exceed max,
defaulting to "1G" for initial heap.
constJAVA_VERSION_ERROR:&str = "JDTLS requires at least Java version 21 to run. You can either specify a different JDK to use by configuring lsp.jdtls.settings.java_home to point to a different JDK, or set lsp.jdtls.settings.jdk_auto_download to true to let the extension automatically download one for you.";
35
35
constJDTLS_VERION_ERROR:&str = "No version to fallback to";
36
36
37
+
/// Parse a JVM memory string (e.g. "2G", "512m", "1024k") into bytes.
38
+
fnparse_memory_value(s:&str) -> Option<u64>{
39
+
let s = s.trim();
40
+
let(num, multiplier) = match s.as_bytes().last()? {
0 commit comments