Files
ada_language_server/doc/source_dirs.md
Anthony Leonardo Gracio 567d5b406f UB25-027: Add a custom request to list source directories
Allowing the extension to query them in order to add them to the workspace
if not already present.

This allows to search for files that come from imported projects that might
not be under the workspace root directory.

This works only for importing non-externally built source directories
for the moment.
2022-06-24 15:54:53 +02:00

27 lines
669 B
Markdown

# Source dirs
## Short introduction
This is a custom request used by the VS Code extension to retrieve the project's source directories, allowing to add missing directories in the workspace when needed.
## Change description
We introduce three new types to represent the request parameters and results:
```typescript
interface ALS_Unit_Description {
name : string; /* The source directory's name in VS Code */
uri : DocumentUri; /* The source directory's uri */
}
```
And a new request:
method: `workspace/alsSourceDirs`
params: null
Returning the source directories of the loaded project like this:
result: `ALS_Source_Dir_Description[]`