You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/server-capabilities.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,22 +14,28 @@ When loading a document, the server will use Terragrunt's configuration parsing
14
14
15
15
The server provides hover information.
16
16
17
-
When a user hovers over a token, the server will provide information about that token.
17
+
When a Language Server client hovers over a token, the server will provide information about that token.
18
18
19
19
At the moment, the only hover target that is supported is local variables. When hovering over a local variable, the server will provide the evaluated value of that local.
20
20
21
21
## DefinitionProvider
22
22
23
-
The server provides the ability to go to defintions.
23
+
The server provides the ability to go to definitions.
24
24
25
-
When a user requests to go to a definition, the server will provide the location of the definition.
25
+
When a Language Server client requests to go to a definition, the server will provide the location of the definition.
26
26
27
27
At the moment, the only definition target that is supported is includes. When requesting to go to the definition of an include, the server will provide the location of the included file.
28
28
29
29
## CompletionProvider
30
30
31
31
The server provides completion suggestions.
32
32
33
-
When a user requests completions for a token, the server will provide a list of suggestions.
33
+
When a Language Server client requests completions for a token, the server will provide a list of suggestions.
34
34
35
35
At the moment, the only completions that are supported are the names of attributes and blocks. When requesting completions for an attribute or block name, the server will provide a list of suggestions based on the current context.
36
+
37
+
## FormatProvider
38
+
39
+
The server provides the ability to format Terragrunt configuration files.
40
+
41
+
When a Language Server client requests formatting, the server will format the document and return the formatted document to the client.
Copy file name to clipboardExpand all lines: docs/setup.md
+45-3Lines changed: 45 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,19 @@
1
1
# Setup
2
2
3
+
## Setting up build dependencies
4
+
5
+
To bootstrap your development environment, the most convenient method is to [install mise](https://mise.jdx.dev/installing-mise.html).
6
+
7
+
After installing `mise`, you can run the following command to install all necessary build dependencies for this project:
8
+
9
+
```bash
10
+
mise install
11
+
```
12
+
13
+
Alternatively, you can install the relevant dependencies manually by reading the [mise.toml](../mise.toml) file, and installing the dependencies listed there.
14
+
15
+
## Building the Language Server
16
+
3
17
To setup the language server in your editor, first install `terragrunt-ls` by running the following at the root of this repository:
4
18
5
19
```bash
@@ -12,7 +26,33 @@ Then follow the instructions below for your editor:
12
26
13
27
## Visual Studio Code
14
28
15
-
Coming soon!
29
+
To install the Visual Studio Code extension, you can manually compile the extension locally, then install it from the `.vsix` file.
30
+
31
+
1. Navigate to the `vscode-extension` directory:
32
+
33
+
```bash
34
+
cd vscode-extension
35
+
```
36
+
37
+
2. Ensure you have vsce (Visual Studio Code Extension CLI) installed. If you don't have it, you can install it globally using npm:
38
+
39
+
```bash
40
+
npm install -g @vscode/vsce
41
+
```
42
+
43
+
3. Run the following command to package the extension:
44
+
45
+
```bash
46
+
vsce package
47
+
```
48
+
49
+
4. This will create a `.vsix` file in the `vscode-extension` directory (e.g. `terragrunt-ls-0.0.1.vsix`). You can install this file directly as a Visual Studio Code extension, like so:
50
+
51
+
```bash
52
+
code --install-extension terragrunt-ls-0.0.1.vsix
53
+
```
54
+
55
+
Installation from the Visual Studio Extensions Marketplace coming soon!
16
56
17
57
## Neovim
18
58
@@ -49,8 +89,10 @@ return {
49
89
}
50
90
```
51
91
92
+
Installation from Mason coming soon!
93
+
52
94
## Zed
53
95
54
-
For now install rust, clone this repo and point to `zed-extension` directory when [installing dev extension](https://zed.dev/docs/extensions/developing-extensions#developing-an-extension-locally)
96
+
For now, clone this repo and point to the`zed-extension` directory when [installing dev extension](https://zed.dev/docs/extensions/developing-extensions#developing-an-extension-locally)
0 commit comments