File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
packages/amazonq/src/app/inline/EditRendering Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ export class EditsSuggestionSvg {
3535 private readonly session : CodeWhispererSession ,
3636 private readonly inlineCompletionProvider ?: AmazonQInlineCompletionItemProvider // why nullable?
3737 ) {
38- this . documentChangedListener = vscode . workspace . onDidChangeTextDocument ( ( e ) => {
39- this . onDocChange ( e )
38+ this . documentChangedListener = vscode . workspace . onDidChangeTextDocument ( async ( e ) => {
39+ await this . onDocChange ( e )
4040 } )
4141 }
4242
@@ -85,7 +85,7 @@ export class EditsSuggestionSvg {
8585 }
8686 }
8787
88- private onDocChange ( e : vscode . TextDocumentChangeEvent ) {
88+ private async onDocChange ( e : vscode . TextDocumentChangeEvent ) {
8989 if ( e . contentChanges . length <= 0 ) {
9090 return
9191 }
@@ -121,12 +121,7 @@ export class EditsSuggestionSvg {
121121 this . autoReject ( )
122122 }
123123
124- // TODO: await
125- this . show ( )
126- . then ( ( ) => {
127- this . logger . info ( `re-rendering edit` )
128- } )
129- . catch ( ( e ) => { } )
124+ await this . show ( )
130125 } else {
131126 this . autoReject ( )
132127 }
You can’t perform that action at this time.
0 commit comments