This repository has been archived by the owner on Nov 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
78 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
import * as vscode from 'vscode'; | ||
|
||
import { ResultsService, FilesService, DiagnosticsService } from './'; | ||
import {DiagnosticsService, ResultsService} from './'; | ||
|
||
export function initializeServices(context: vscode.ExtensionContext) { | ||
DiagnosticsService.initialize(context); | ||
ResultsService.initialize(context); | ||
FilesService.initialize(context); | ||
} | ||
|
||
export * from './checkov'; | ||
export * from './categoriesService'; | ||
export * from './resultsService'; | ||
export * from './filesService'; | ||
export * from './checkov'; | ||
export * from './diagnosticsService'; | ||
export * from './suppresService'; | ||
export * from './fixService'; | ||
export * from './fixService'; | ||
export * from './resultsService'; | ||
export * from './suppresService'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import { FilesService } from '../../../../services'; | ||
import { CheckovResult } from '../../../../types'; | ||
import {CheckovResult} from '../../../../types'; | ||
import {FilesService} from "../../../../services/filesService"; | ||
|
||
export class FocusString { | ||
|
||
public static async handle({ result, row }: { result: CheckovResult, row: number }) { | ||
if (result && row) { | ||
await FilesService.openResult(result, row); | ||
return; | ||
} | ||
|
||
throw new Error('There is no repo file path of file line to focus'); | ||
} | ||
} |
13 changes: 7 additions & 6 deletions
13
src/views/interface/primarySidebar/dataProviders/resultTreeDataProvider.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters