Skip to content

Check if actual code was added or not before providing suggestion

Tim Zallmann requested to merge tz-reduce-space-delete-calls into main

Description

It rejects code suggestion requests when they satisfy the following criteria:

  • The request is triggered by an action that doesn't change the document.
  • The request is triggered by deleting a single character in a line.
  • The request is triggered by typing white spaces repeatedly in a single line.

Motivation

We want to reduce the number of suggestion requests based on these criteria to use server resources more efficiently and do not feed the model with redundant data.

Telemetry documentation MR: gitlab-org/editor-extensions/gitlab-lsp!105 (merged)

Related Issues

Resolves #[issue_number]

How has this been tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation
  • Chore (Related to CI or Packaging to platforms)
  • Test gap
Edited by Enrique Alcántara

Merge request reports