Skip to content

feat: Decide whether to stream based on the intent (extension)

Olena Horal-Koretska requested to merge Detect-streaming-based-on-intent into main

This is the extension part for gitlab-org/editor-extensions/gitlab-lsp!182 (64733c90) (Merged already)

We want to detect whether to stream data to the user based on the intent. Intent is detected by the LS. The Client sends a request with document context and based on the returned intent decided whether to stream. Make sure to enable the streamResponses FF

Closes #1165 (closed)

Local testing

Ensure you have the following settings in your VS Code settings.json:

{
  "gitlab.featureFlags.streamCodeGenerations": true,
  "gitlab.aiAssistedCodeSuggestions.enabled": true,
}

Write a comment prompting for generation

// generate express router with 10 routes

See generation.

Edited by Tomas Vik (OOO back on 2024-06-18)

Merge request reports