Skip to content

Draft: feat: Handle partial acceptance gracefully

Paul Slaughter requested to merge ps-handle-partial-acceptance into main

Description

This MR attempts to resolve [VS Code] Code Suggestions Toolbar: Inability t... (#1170) by adding:

  • A new Middleware to memoize returned CompletionItem and determine if the user is partially completing this or not.
  • A composeMiddlewares helper to compose multiple Language Server Middlewares into one.

Screenshots (if appropriate):

partial_complete_middleware_demo

KNOW ISSUE: When the user is manually typing and matches the completion we don't run a new generation even though the old generation is no longer visible in the editor.

Merge request reports