@@ -28,7 +28,7 @@ import * as DeltaRunFunctions from './deltarun/delta-run-service';
28
28
import * as os from 'os' ;
29
29
import * as fs from 'fs' ;
30
30
import { ApexPmdViolationsFixer } from './modelBasedFixers/apex-pmd-violations-fixer'
31
- import { VSCodeUnifiedDiff , DiffHunk } from './shared/UnifiedDiff' ;
31
+ import { VSCodeUnifiedDiff , DiffHunk , CODEGENIE_UNIFIED_DIFF_ACCEPT , CODEGENIE_UNIFIED_DIFF_REJECT , CODEGENIE_UNIFIED_DIFF_ACCEPT_ALL , CODEGENIE_UNIFIED_DIFF_REJECT_ALL } from './shared/UnifiedDiff' ;
32
32
33
33
export type RunInfo = {
34
34
diagnosticCollection ?: vscode . DiagnosticCollection ;
@@ -238,18 +238,18 @@ function setupUnifiedDiff(context: vscode.ExtensionContext, diagnosticManager: D
238
238
} )
239
239
) ;
240
240
context . subscriptions . push (
241
- vscode . commands . registerCommand ( Constants . UNIFIED_DIFF_ACCEPT , async ( hunk : DiffHunk , range : vscode . Range ) => {
241
+ vscode . commands . registerCommand ( CODEGENIE_UNIFIED_DIFF_ACCEPT , async ( hunk : DiffHunk , range : vscode . Range ) => {
242
242
await VSCodeUnifiedDiff . singleton . unifiedDiffAccept ( hunk ) ;
243
243
apexPmdFixer . removeDiagnosticsWithInRange ( vscode . window . activeTextEditor . document . uri , range , diagnosticCollection ) ;
244
244
} )
245
245
) ;
246
246
context . subscriptions . push (
247
- vscode . commands . registerCommand ( Constants . UNIFIED_DIFF_REJECT , async ( hunk : DiffHunk ) => {
247
+ vscode . commands . registerCommand ( CODEGENIE_UNIFIED_DIFF_REJECT , async ( hunk : DiffHunk ) => {
248
248
await VSCodeUnifiedDiff . singleton . unifiedDiffReject ( hunk ) ;
249
249
} )
250
250
) ;
251
251
context . subscriptions . push (
252
- vscode . commands . registerCommand ( Constants . UNIFIED_DIFF_ACCEPT_ALL , async ( ) => {
252
+ vscode . commands . registerCommand ( CODEGENIE_UNIFIED_DIFF_ACCEPT_ALL , async ( ) => {
253
253
await VSCodeUnifiedDiff . singleton . unifiedDiffAcceptAll ( ) ;
254
254
// For accept all, it is tricky to get all the code that gets accepted and to remove them from diagnostic.
255
255
// Hence, we save the file and rerun the scan instead.
@@ -262,7 +262,7 @@ function setupUnifiedDiff(context: vscode.ExtensionContext, diagnosticManager: D
262
262
} )
263
263
) ;
264
264
context . subscriptions . push (
265
- vscode . commands . registerCommand ( Constants . UNIFIED_DIFF_REJECT_ALL , async ( ) => {
265
+ vscode . commands . registerCommand ( CODEGENIE_UNIFIED_DIFF_REJECT_ALL , async ( ) => {
266
266
await VSCodeUnifiedDiff . singleton . unifiedDiffRejectAll ( ) ;
267
267
} )
268
268
) ;
0 commit comments