File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
packages/amazonq/src/app/inline/EditRendering Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -306,10 +306,18 @@ export async function displaySvgDecoration(
306306 return
307307 }
308308 const documentChangeListener = vscode . workspace . onDidChangeTextDocument ( ( e ) => {
309- if ( e . contentChanges . length <= 0 ) return
310- if ( e . document !== editor . document ) return
311- if ( vsCodeState . isCodeWhispererEditing ) return
312- if ( getContext ( 'aws.amazonq.editSuggestionActive' ) === false ) return
309+ if ( e . contentChanges . length <= 0 ) {
310+ return
311+ }
312+ if ( e . document !== editor . document ) {
313+ return
314+ }
315+ if ( vsCodeState . isCodeWhispererEditing ) {
316+ return
317+ }
318+ if ( getContext ( 'aws.amazonq.editSuggestionActive' ) === false ) {
319+ return
320+ }
313321
314322 const isPatchValid = applyPatch ( e . document . getText ( ) , item . insertText as string )
315323 if ( ! isPatchValid ) {
You can’t perform that action at this time.
0 commit comments