File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
packages/amazonq/test/e2e/inline Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,17 @@ describe('Amazon Q Inline', async function () {
116116 **/
117117 await sleep ( 1000 )
118118
119+ /**
120+ * It seems like there are instances (race condition?) where amazon q starts generating when you open up
121+ * the file. Wait for that initial request to settle before doing anything
122+ */
123+ await waitUntil ( async ( ) => {
124+ console . log (
125+ `Waiting for recommenation to service to settle. Current status: ${ RecommendationService . instance . isRunning } `
126+ )
127+ return ! RecommendationService . instance . isRunning
128+ } , waitOptions )
129+
119130 await invokeCompletion ( )
120131 originalEditorContents = vscode . window . activeTextEditor ?. document . getText ( )
121132
You can’t perform that action at this time.
0 commit comments