You've already forked ada_language_server
mirror of
https://github.com/AdaCore/ada_language_server.git
synced 2026-02-12 12:45:50 -08:00
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.
27 lines
669 B
Markdown
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[]`
|