Validating and providing proactively generated code completion suggestions for code development

US12487796B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12487796-B2
Application numberUS-202217847112-A
CountryUS
Kind codeB2
Filing dateJun 22, 2022
Priority dateJun 22, 2022
Publication dateDec 2, 2025
Grant dateDec 2, 2025

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

Code completion suggestions may be proactively obtained and validated. An event that triggers obtaining a code completion suggestion for inclusion in a code file being edited using an integrated development environment may be detected. The code completion suggestion may be obtained. The characters of the code completion suggestion may be compared with characters added to the code file after the detection of the event that triggered obtaining the code completion suggestion to determine whether the code completion suggestion is valid. A valid code completion suggestion may then be displayed.

First claim

Opening claim text (preview).

What is claimed is: 1 . A system, comprising: at least one processor; and a memory storing program instructions that, when executed by the at least one processor, cause the at least one processor to implement an integrated development environment, configured to: detect an event that triggers a request for obtaining a code completion suggestion to include in a code file being edited using the integrated development environment; send the request for obtaining the code completion suggestion to a code generation system, wherein the request comprises one or more characters immediately preceding a cursor at a first time when the event that triggers the request for obtaining the code completion suggestion is detected; receive the code completion suggestion from the code generation system, wherein the code completion suggestion comprises one or more suggested characters generated responsive to the one or more characters immediately preceding the cursor at the first time to input to the code file immediately after the cursor at the first time; compare, at a second time, a number of the one or more suggested characters, generated in view of the one or more characters immediately preceding the cursor at the first time, with a corresponding number of one or more actual characters input to the code file after the first time that are before the cursor at the second time to determine that the comparison of the number of the one or more suggested characters with the corresponding number of the one or more actual characters satisfies one or more validation criteria, wherein the one or more validation criteria require a match between at least some of the one or more suggested characters with the one or more actual characters after the first time; and responsive to determining that the one or more validation criteria are satisfied, display the code completion suggestion for input to the code file. 2 . The system of claim 1 , wherein the event that triggers the request is detected based, at least in part, on a number of key strokes or an amount of time elapsed since a prior code completion suggestion or a combination of the number of key strokes and the amount of time elapsed since the prior code completion suggestion. 3 . The system of claim 1 , wherein the integrated development environment is further configured to obtain one or more portions of the code file outside a number of previous tokens as an additional context, and wherein the code completion suggestion is based on the additional context of the obtained one or more portions of the code file outside the number of previous tokens. 4 . The system of claim 1 , wherein the code generation system is implemented as part of a code development service offered by a provider network. 5 . A method, comprising: detecting, by an integrated development environment, an event that triggers a request for obtaining a code completion suggestion to include in a code file being edited using the integrated development environment; causing, by the integrated development environment, generation of a code completion suggestion based, at least in part, on one or more characters immediately preceding a cursor at a first time when the event that triggers the request for obtaining the code completion suggestion is detected, wherein the code completion suggestion comprises one or more suggested characters, generated responsive to the one or more characters immediately preceding the cursor at the first time to input to the code file immediately after the cursor at the first time; comparing, by the integrated development environment, at a second time, a number of the one or more suggested characters, generated in view of the one or more characters immediately preceding the cursor at the first time, with a corresponding number of one or more actual characters input to the code file after the first time that are before the cursor at the second time to determine that the comparison of the number of the one or more suggested characters with the corresponding number of the one or more actual characters satisfy one or more validation criteria, wherein the one or more validation criteria require a match between at least some of the one or more suggested characters with the one or more actual characters after the first time; and responsive to determining that the one or more validation criteria are satisfied, displaying, by the integrated development environment, the code completion suggestion for input to the code file. 6 . The method of claim 5 , wherein the event that triggers the request is detected based, at least in part, on a number of key strokes or an amount of time elapsed since a prior code completion suggestion or a combination of the number of key strokes and the amount of time elapsed since the prior code completion suggestion. 7 . The method of claim 5 , wherein the event that triggers the request is detected based, at least in part, on entering of a particular character. 8 . The method of claim 5 , further comprising discarding a different code completion suggestion generated for inclusion in the code file according to a determination that the one or more validation criteria are not satisfied according to a comparison between further characters input to the code file and the different code completion suggestion. 9 . The method of claim 5 , further comprising obtaining one or more portions of the code file outside a number of previous tokens as an additional context, wherein the code completion suggestion is based on the additional context of the obtained one or more portions of the code file outside the number of previous tokens. 10 . The method of claim 9 , wherein obtaining the one or more portions of the code file outside the number of previous tokens comprises performing one or more regular expression searches. 11 . The method of claim 5 , further comprising obtaining one or more portions of a different code file as an additional context, wherein the code completion suggestion is based on the additional context of the obtained one or more portions of the different code file. 12 . The method of claim 5 , wherein causing generation of the code completion suggestion comprises sending the request to a code development service offered by a provider network for obtaining the code completion suggestion. 13 . One or more non-transitory computer-readable storage media storing program instructions that, when executed on or across one or more computing devices, cause the one or more computing devices to implement: detecting an event that triggers a request for obtaining a code completion suggestion to include in a code file being edited using an integrated development environment; obtaining a code completion suggestion based, at least in part, on one or more characters immediately preceding a cursor at a first time when the event that triggers the request for obtaining the code completion suggestion is detected, wherein the code completion suggestion comprises one or more suggested characters, generated responsive to the one or more characters immediately preceding the cursor at the first time, to input to the code file immediately after the cursor at the first time; comparing, at a second time, a number of the one or more suggested characters, generated in view of the one or more characters immediately preceding the cursor at the first time, with a corresponding number of one or more actual characters input to the code file after the first time that are before the cursor at the second time to determine that the comparison of the number of the one or more suggested characters with the corresponding number of the one or more

Assignees

Inventors

Classifications

  • using system suggestions (G06F16/3325 takes precedence) · CPC title

  • G06F8/33Primary

    Intelligent editors · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US12487796B2 cover?
Code completion suggestions may be proactively obtained and validated. An event that triggers obtaining a code completion suggestion for inclusion in a code file being edited using an integrated development environment may be detected. The code completion suggestion may be obtained. The characters of the code completion suggestion may be compared with characters added to the code file after the…
Who is the assignee on this patent?
Amazon Tech Inc
What technology area does this patent fall under?
Primary CPC classification G06F8/33. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Dec 02 2025 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 12 related publications on this page (citations in our corpus or others sharing the same primary CPC).