Files
ada_language_server/doc/get_project_attribute_value.md
Anthony Leonardo Gracio b025af29fd Add a 'als-get-project-attribute-value' command
Used to query project attribute values from LSP clients.

For eng/ide/ada_language_server#1309
2025-01-17 16:05:57 +00:00

773 B

Get Project Attribute Value

Short introduction

This is a custom command used by the VS Code extension to retrieve the value of a project attribute for the currently loaded project tree.

Change description

The command's name is the following:

method: als-get-project-attribute-value

With the following arguments:


type ProjectAttributeValueArgs = {
   attribute: string, /* The name of the attribute (e.g: 'Main') */
   pkg: string="", /* The name of the package (e.g: 'Compiler'). Can be empty for top-level attributes */
   index: string="" /* Index for indexed attributes (e.g: 'Ada' in 'for Default_Switches ("Ada") use ..') */,
}

with the associated return type:


type ProjectValueResponse = string | string[];