@@ -50,16 +50,18 @@ Settings getCurrentSettings() {
5050 trustedFolders = trustedFoldersString .split (File .pathSeparator );
5151 }
5252 String enableTrustedFolderFeature = Boolean .TRUE .toString ();
53+ //TODO does this work? getBooleanPref returns a boolean, but we are assigning the return value to a string?
5354 String scanningMode = preferences .getBooleanPref (Preferences .SCANNING_MODE_AUTOMATIC ) ? "automatic" : "manual" ;
5455 boolean useTokenAuth = preferences .getBooleanPref (Preferences .USE_TOKEN_AUTH , false );
5556 var authMethod = "oauth" ;
5657 if (useTokenAuth ) {
5758 authMethod = "token" ;
5859 }
59- return new Settings (activateSnykOpenSource , activateSnykCodeSecurity , activateSnykCodeQuality , activateSnykIac , insecure , endpoint , additionalParams ,
60+ String enableDeltaFindings = preferences .getPref (Preferences .FILTER_DELTA_NEW_ISSUES , "" );
61+ return new Settings (activateSnykOpenSource , activateSnykCodeSecurity , activateSnykCodeQuality , activateSnykIac , insecure , endpoint , additionalParams ,
6062 additionalEnv , path , sendErrorReports , enableTelemetry , organization , manageBinariesAutomatically , cliPath ,
6163 token , integrationName , integrationVersion , automaticAuthentication , trustedFolders , enableTrustedFolderFeature ,
62- scanningMode , authMethod );
64+ scanningMode , enableDeltaFindings , authMethod );
6365 }
6466
6567 static class Settings {
@@ -89,14 +91,15 @@ static class Settings {
8991 private final String osArch = SystemUtils .OS_ARCH ;
9092 private final String osPlatform = SystemUtils .OS_NAME ;
9193 private final String scanningMode ;
94+ private final String enableDeltaFindings ;
9295 private final String requiredProtocolVersion = LsBinaries .REQUIRED_LS_PROTOCOL_VERSION ;
9396 private final String authenticationMethod ;
9497
9598 public Settings (String activateSnykOpenSource , String activateSnykCodeSecurity , String activateSnykCodeQuality , String activateSnykIac , String insecure ,
9699 String endpoint , String additionalParams , String additionalEnv , String path , String sendErrorReports ,
97100 String enableTelemetry , String organization , String manageBinariesAutomatically , String cliPath , String token ,
98101 String integrationName , String integrationVersion , String automaticAuthentication , String [] trustedFolders ,
99- String enableTrustedFoldersFeature , String scanningMode , String authMethod ) {
102+ String enableTrustedFoldersFeature , String scanningMode , String enableDeltaFindings , String authMethod ) {
100103 this .activateSnykOpenSource = activateSnykOpenSource ;
101104 this .activateSnykCodeSecurity = activateSnykCodeSecurity ;
102105 this .activateSnykCodeQuality = activateSnykCodeQuality ;
@@ -118,6 +121,7 @@ public Settings(String activateSnykOpenSource, String activateSnykCodeSecurity,
118121 this .trustedFolders = trustedFolders ;
119122 this .enableTrustedFoldersFeature = enableTrustedFoldersFeature ;
120123 this .scanningMode = scanningMode ;
124+ this .enableDeltaFindings = enableDeltaFindings ;
121125 this .authenticationMethod = authMethod ;
122126 }
123127
0 commit comments