@@ -528,15 +528,23 @@ type WorkspaceFoldersChangeEvent struct {
528
528
Removed []WorkspaceFolder `json:"Removed,omitempty"`
529
529
}
530
530
531
+ type ScanCommandConfig struct {
532
+ PreScanCommand string `json:"command,omitempty"`
533
+ PreScanOnlyReferenceFolder bool `json:"preScanOnlyReferenceFolder,omitempty"`
534
+ PostScanCommand string `json:"postScanCommand,omitempty"`
535
+ PostScanOnlyReferenceFolder bool `json:"postScanOnlyReferenceFolder,omitempty"`
536
+ }
537
+
531
538
// FolderConfig is exchanged between IDE and LS
532
539
// IDE sends this as part of the settings/initialization
533
540
// LS sends this via the $/snyk.folderConfig notification
534
541
type FolderConfig struct {
535
- FolderPath string `json:"folderPath"`
536
- BaseBranch string `json:"baseBranch"`
537
- LocalBranches []string `json:"localBranches,omitempty"`
538
- AdditionalParameters []string `json:"additionalParameters,omitempty"`
539
- ReferenceFolderPath string `json:"referenceFolderPath,omitempty"`
542
+ FolderPath string `json:"folderPath"`
543
+ BaseBranch string `json:"baseBranch"`
544
+ LocalBranches []string `json:"localBranches,omitempty"`
545
+ AdditionalParameters []string `json:"additionalParameters,omitempty"`
546
+ ReferenceFolderPath string `json:"referenceFolderPath,omitempty"`
547
+ ScanCommandConfig ScanCommandConfig `json:"preScanCommandConfig,omitempty"`
540
548
}
541
549
542
550
type Pair struct {
0 commit comments