Skip to content

Commit 9952204

Browse files
committed
chore(amazonq): refactor to a new class
1 parent 0cae291 commit 9952204

File tree

8 files changed

+718
-253
lines changed

8 files changed

+718
-253
lines changed

packages/amazonq/src/app/inline/completion.ts

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,9 @@ import { SessionManager } from './sessionManager'
2626
import { RecommendationService } from './recommendationService'
2727
import {
2828
CodeWhispererConstants,
29-
CodeWhispererSource,
30-
connectCustomizationHandler,
3129
ReferenceHoverProvider,
3230
ReferenceInlineProvider,
3331
ReferenceLogViewProvider,
34-
selectCustomizationHandler,
3532
} from 'aws-core-vscode/codewhisperer'
3633

3734
export class InlineCompletionManager implements Disposable {
@@ -63,34 +60,6 @@ export class InlineCompletionManager implements Disposable {
6360
}
6461
}
6562

66-
public registerCustomization(client: LanguageClient) {
67-
commands.registerCommand(
68-
'_aws.amazonq.customization.connect',
69-
async (
70-
source: string,
71-
startUrl?: string,
72-
region?: string,
73-
customizationArn?: string,
74-
customizationNamePrefix?: string
75-
) => {
76-
return await connectCustomizationHandler(client)(
77-
source,
78-
startUrl,
79-
region,
80-
customizationArn,
81-
customizationNamePrefix
82-
)
83-
}
84-
)
85-
86-
commands.registerCommand(
87-
'_aws.amazonq.customization.select',
88-
async (customization: any, source: CodeWhispererSource) => {
89-
return await selectCustomizationHandler(client)(customization, source)
90-
}
91-
)
92-
}
93-
9463
public registerInlineCompletion() {
9564
const onInlineAcceptance = async (
9665
sessionId: string,

0 commit comments

Comments
 (0)