Trim code suggestions context when it exceeds the limit
What does this MR do and why?
Trims code suggestions context when it exceeds the limit
When context size exceeds the limit, start trimming bigger snippets until the context size fits into the limit boundaries.
Contributes to the following discussion gitlab-org/editor-extensions/gitlab-lsp#208 (comment 1925688995)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Vitali Tatarintev