Skip to content

Commit f0df69c

Browse files
author
David Hasani
committed
fix circular imports
1 parent 09872d3 commit f0df69c

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

packages/core/src/codewhisperer/commands/startTransformByQ.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ import {
6565
getCodeIssueSnippetFromPom,
6666
getDependenciesFolderInfo,
6767
getJsonValuesFromManifestFile,
68+
highlightPomIssueInProject,
6869
parseVersionsListFromPomFile,
6970
setMaven,
7071
writeLogs,
@@ -391,6 +392,15 @@ export async function initiateHumanInTheLoopPrompt(jobId: string) {
391392
return false
392393
}
393394

395+
export async function openHilPomFile() {
396+
const humanInTheLoopManager = HumanInTheLoopManager.instance
397+
await highlightPomIssueInProject(
398+
humanInTheLoopManager.getNewPomFileVirtualFileReference(),
399+
HumanInTheLoopManager.instance.diagnosticCollection,
400+
humanInTheLoopManager.getManifestFileValues().sourcePomVersion
401+
)
402+
}
403+
394404
export async function terminateHILEarly(jobID: string) {
395405
// Call resume with "REJECTED" state which will put our service
396406
// back into the normal flow and will not trigger HIL again for this step

packages/core/src/codewhisperer/service/transformByQ/transformFileHandler.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import { ChatSessionManager } from '../../../amazonqGumby/chat/storages/chatSess
1717
import { AbsolutePathDetectedError } from '../../../amazonqGumby/errors'
1818
import { getLogger } from '../../../shared/logger'
1919
import { isWin } from '../../../shared/vscode/env'
20-
import { HumanInTheLoopManager } from './humanInTheLoopManager'
2120

2221
export function getDependenciesFolderInfo(): FolderInfo {
2322
const dependencyFolderName = `${CodeWhispererConstants.dependencyFolderName}${globals.clock.Date.now()}`
@@ -134,15 +133,6 @@ export async function setMaven() {
134133
getLogger().info(`CodeTransformation: using Maven ${transformByQState.getMavenName()}`)
135134
}
136135

137-
export async function openHilPomFile() {
138-
const humanInTheLoopManager = HumanInTheLoopManager.instance
139-
await highlightPomIssueInProject(
140-
humanInTheLoopManager.getNewPomFileVirtualFileReference(),
141-
HumanInTheLoopManager.instance.diagnosticCollection,
142-
humanInTheLoopManager.getManifestFileValues().sourcePomVersion
143-
)
144-
}
145-
146136
export async function openBuildLogFile() {
147137
const logFilePath = transformByQState.getPreBuildLogFilePath()
148138
const doc = await vscode.workspace.openTextDocument(logFilePath)

0 commit comments

Comments
 (0)