Skip to content

Commit f407bf4

Browse files
authored
fix LF doesn't trigger (#429)
1 parent 6cf1597 commit f407bf4

File tree

1 file changed

+1
-1
lines changed
  • server/aws-lsp-codewhisperer/src/language-server/auto-trigger

1 file changed

+1
-1
lines changed

server/aws-lsp-codewhisperer/src/language-server/auto-trigger/autoTrigger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const triggerType = (fileContext: FileContext): CodewhispererAutomatedTri
5353
}
5454

5555
const lastLF = fileContext.leftFileContent.lastIndexOf('\n')
56-
if (lastLF >= 0 && fileContext.leftFileContent.substring(lastLF + 2).trim() === '') {
56+
if (lastLF >= 0 && fileContext.leftFileContent.substring(lastLF + 1).trim() === '') {
5757
return 'Enter'
5858
}
5959

0 commit comments

Comments
 (0)