File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
packages/core/src/codewhisperer Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff 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+
394404export 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
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ import { ChatSessionManager } from '../../../amazonqGumby/chat/storages/chatSess
1717import { AbsolutePathDetectedError } from '../../../amazonqGumby/errors'
1818import { getLogger } from '../../../shared/logger'
1919import { isWin } from '../../../shared/vscode/env'
20- import { HumanInTheLoopManager } from './humanInTheLoopManager'
2120
2221export 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-
146136export async function openBuildLogFile ( ) {
147137 const logFilePath = transformByQState . getPreBuildLogFilePath ( )
148138 const doc = await vscode . workspace . openTextDocument ( logFilePath )
You can’t perform that action at this time.
0 commit comments