Skip to content

Commit 6616e3d

Browse files
committed
fix lint
1 parent db9be45 commit 6616e3d

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

packages/amazonq/src/app/inline/EditRendering/displayImage.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)