@@ -5,6 +5,8 @@ import * as path from "path";
55import { sendInfo } from "vscode-extension-telemetry-wrapper" ;
66import { LSDaemon } from "../daemon" ;
77
8+ const lombokJarRegex = / l o m b o k - \d + .* \. j a r / ;
9+
810export class ClientLogWatcher {
911 private context : vscode . ExtensionContext ;
1012 private javaExtensionRoot : vscode . Uri | undefined ;
@@ -36,7 +38,11 @@ export class ClientLogWatcher {
3638 if ( startupLog ) {
3739 info . xmx = startupLog . message . match ( / - X m x [ 0 - 9 k m g K M G ] + / g) ?. [ 0 ] ;
3840 info . xms = startupLog . message . match ( / - X m s [ 0 - 9 k m g K M G ] + / g) ?. [ 0 ] ;
39- info . lombok = startupLog . message . includes ( "lombok.jar" ) ? "true" : undefined ;
41+ if ( startupLog . message . includes ( "lombok.jar" ) ) {
42+ info . lombok = "true" ; // using old version of 3rd party lombok extension
43+ } else if ( startupLog . message . match ( lombokJarRegex ) ) {
44+ info . lombok = "embedded" ; // lombok projects, loading embedded lombok.jar
45+ }
4046 info . workspaceType = startupLog . message . match ( / - X X : H e a p D u m p P a t h = .* ( v s c o d e s w s ) / ) ? "vscodesws" : "folder" ;
4147 }
4248
@@ -103,7 +109,7 @@ export class ClientLogWatcher {
103109 }
104110}
105111/**
106- * filename: client.log.yyyy-mm-dd.r
112+ * filename: client.log.yyyy-mm-dd.r
107113 */
108114function compare_file ( a : string , b : string ) {
109115 const dateA = a . slice ( 11 , 21 ) , dateB = b . slice ( 11 , 21 ) ;
0 commit comments