@@ -10,9 +10,8 @@ import { Commands, VsCodeCommandArg } from '../../shared/vscode/commands2'
10
10
import * as CodeWhispererConstants from '../models/constants'
11
11
import { DefaultCodeWhispererClient } from '../client/codewhisperer'
12
12
import { startSecurityScanWithProgress , confirmStopSecurityScan } from './startSecurityScan'
13
- import { startTransformByQWithProgress , confirmStopTransformByQ } from './startTransformByQ'
14
13
import { SecurityPanelViewProvider } from '../views/securityPanelViewProvider'
15
- import { CodeScanIssue , codeScanState , CodeSuggestionsState , transformByQState } from '../models/model'
14
+ import { CodeScanIssue , codeScanState , CodeSuggestionsState } from '../models/model'
16
15
import { connectToEnterpriseSso , getStartUrl } from '../util/getStartUrl'
17
16
import { showCodeWhispererConnectionPrompt } from '../util/showSsoPrompt'
18
17
import { ReferenceLogViewProvider } from '../service/referenceLogViewProvider'
@@ -32,10 +31,6 @@ import { fsCommon } from '../../srcShared/fs'
32
31
import { Mutable } from '../../shared/utilities/tsUtils'
33
32
import { CodeWhispererSource } from './types'
34
33
import { showManageConnections } from '../../auth/ui/vue/show'
35
- import {
36
- CancelActionPositions ,
37
- logCodeTransformInitiatedMetric ,
38
- } from '../../amazonqGumby/telemetry/codeTransformTelemetry'
39
34
import { FeatureConfigProvider } from '../service/featureConfigProvider'
40
35
41
36
export const toggleCodeSuggestions = Commands . declare (
@@ -113,39 +108,6 @@ export const showSecurityScan = Commands.declare(
113
108
}
114
109
)
115
110
116
- export const showTransformByQ = Commands . declare (
117
- { id : 'aws.awsq.transform' , compositeKey : { 0 : 'source' } } ,
118
- ( context : ExtContext ) => async ( source : string ) => {
119
- if ( AuthUtil . instance . isConnectionExpired ( ) ) {
120
- await AuthUtil . instance . notifyReauthenticate ( )
121
- }
122
-
123
- if ( transformByQState . isNotStarted ( ) ) {
124
- logCodeTransformInitiatedMetric ( source )
125
- await startTransformByQWithProgress ( )
126
- } else if ( transformByQState . isCancelled ( ) ) {
127
- void vscode . window . showInformationMessage ( CodeWhispererConstants . cancellationInProgressMessage )
128
- } else if ( transformByQState . isRunning ( ) ) {
129
- await confirmStopTransformByQ ( transformByQState . getJobId ( ) , CancelActionPositions . DevToolsSidePanel )
130
- }
131
- // emit telemetry if clicked from tree node
132
- if ( source === CodeWhispererConstants . transformTreeNode ) {
133
- telemetry . ui_click . emit ( {
134
- elementId : 'amazonq_transform' ,
135
- passive : false ,
136
- } )
137
- }
138
- await Commands . tryExecute ( 'aws.codeWhisperer.refresh' )
139
- }
140
- )
141
-
142
- export const showTransformationHub = Commands . declare (
143
- { id : 'aws.amazonq.showTransformationHub' , compositeKey : { 0 : 'source' } } ,
144
- ( ) => async ( source : string ) => {
145
- await vscode . commands . executeCommand ( 'workbench.view.extension.aws-codewhisperer-transformation-hub' )
146
- }
147
- )
148
-
149
111
export const selectCustomizationPrompt = Commands . declare (
150
112
{ id : 'aws.codeWhisperer.selectCustomization' , compositeKey : { 1 : 'source' } } ,
151
113
( ) => async ( _ : VsCodeCommandArg , source : CodeWhispererSource ) => {
0 commit comments