[go: up one dir, main page]

Skip to content

Language Server Should send Category Data

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

From MR comment: gitlab-vscode-extension!1918 (diffs, comment 2097498360)


The pinned context UI within DuoChat receives an array of categories for displaying, which have this shape:

Array<{ label: string, value: AIContextCategory, icon: string }>

These are mapped from the language server, which sends an array of AIContextCategory (known strings, e.g. 'file', 'merge_request').

The current implementation means that the supported categories are coupled to the UI, and adding a new category requires a change in both the LSP and the UI mapping code.

It would be good if the language server could provide the full object, so the UI remains data-driven.

Edited by 🤖 GitLab Bot 🤖