Ensure Enclosing Delimiters in Suggested Code Match Existing Code in Model Gateway
Problem Statement:
The suggested code often repeats closing delimiters such as ], }, or ". This leads to syntax errors and slows down the developer, making them less likely to trust or accept the suggestion. This issue is currently being addressed in the Language Server, but there is a need to implement a solution in the Model Gateway as well, to ensure consistency across all IDEs.
Examples:
See Ensure enclosing delimiters in suggested code m... (gitlab-org/editor-extensions/gitlab-lsp#62) • Unassigned • Next 1-3 releases and feat(tree-sitter): Improve code suggestions bef... (gitlab-org/editor-extensions/gitlab-lsp!101 - closed)
Exit Criteria:
- Implement a solution in the Model Gateway that ensures the suggested code does not repeat closing delimiters.
- The solution should be able to handle different formatting and whitespace changes.
- The solution should be compatible with the existing post-processing pipeline and Tree-Sitter.