File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 55
66import vscode from 'vscode'
77import {
8+ acceptSuggestion ,
89 AuthUtil ,
910 CodeSuggestionsState ,
1011 CodeWhispererCodeCoverageTracker ,
@@ -61,6 +62,7 @@ export async function activate(languageClient: LanguageClient) {
6162 * Automated trigger
6263 */
6364 globals . context . subscriptions . push (
65+ acceptSuggestion . register ( globals . context ) ,
6466 vscode . window . onDidChangeActiveTextEditor ( async ( editor ) => {
6567 await RecommendationHandler . instance . onEditorChange ( )
6668 } ) ,
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ import { sleep } from '../../shared/utilities/timeoutUtils'
1515import { handleExtraBrackets } from '../util/closingBracketUtil'
1616import { Commands } from '../../shared/vscode/commands2'
1717import { isInlineCompletionEnabled } from '../util/commonUtil'
18- import { ExtContext } from '../../shared/extensions'
1918import { onAcceptance } from './onAcceptance'
2019import * as codewhispererClient from '../client/codewhisperer'
2120import {
@@ -36,7 +35,7 @@ import { UserWrittenCodeTracker } from '../tracker/userWrittenCodeTracker'
3635
3736export const acceptSuggestion = Commands . declare (
3837 'aws.amazonq.accept' ,
39- ( context : ExtContext ) =>
38+ ( context : vscode . ExtensionContext ) =>
4039 async (
4140 range : vscode . Range ,
4241 effectiveRange : vscode . Range ,
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ export { TelemetryHelper } from './util/telemetryHelper'
6262export { LineSelection , LineTracker } from './tracker/lineTracker'
6363export { runtimeLanguageContext , RuntimeLanguageContext } from './util/runtimeLanguageContext'
6464export * as startSecurityScan from './commands/startSecurityScan'
65+ export { acceptSuggestion } from './commands/onInlineAcceptance'
6566export * from './util/showSsoPrompt'
6667export * from './util/securityScanLanguageContext'
6768export * from './util/importAdderUtil'
You can’t perform that action at this time.
0 commit comments