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: CONTRIBUTING.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,10 +20,13 @@ npm run package:vscode
20
20
21
21
## Local Leo LSP Testing
22
22
23
-
For local language-server validation, install `leo-lsp` so the executable is
24
-
available on `PATH`, or point the extension at it explicitly with the
25
-
`leo.languageServer.path` setting.
23
+
For local language-server validation, install the supported `leo-lsp` version:
26
24
27
-
When the extension finds `leo-lsp`, it starts the Rust language server over
28
-
stdio. When it does not find the binary, the extension stays in its
29
-
tree-sitter-derived fallback mode instead of failing activation.
25
+
```bash
26
+
cargo install leo-lsp --version 4.4.1 --locked
27
+
leo-lsp --version
28
+
```
29
+
30
+
The executable must be available on `PATH`. You can also set `leo.languageServer.path` to its absolute path.
31
+
32
+
When the extension finds `leo-lsp`, it starts the Rust language server over stdio. When it does not find the binary, the extension uses its tree-sitter-derived fallback mode.
The plan is to test from `master` for now, then publish the updated
41
-
`aleohq.leo-extension` marketplace package after Leo mainnet ships. Because the
42
-
extension identity stays the same, existing VS Code users should receive the
43
-
update automatically.
36
+
The extension identity does not change, so existing VS Code users receive Marketplace updates automatically.
44
37
45
38
## Generated Syntax Artifacts
46
39
@@ -112,13 +105,12 @@ npm run package:vscode
112
105
113
106
## Manual Marketplace Publish
114
107
115
-
Once `VSCODE_PUBLISHER_TOKEN` is configured for this repository, maintainers can
116
-
publish from the Actions tab with `.github/workflows/publish-vscode-extension.yml`.
108
+
Once `VSCODE_PUBLISHER_TOKEN` is configured for this repository, maintainers can publish from the Actions tab with `.github/workflows/publish-vscode-extension.yml`.
117
109
118
110
The manual workflow:
119
111
120
112
- checks out the default branch
121
-
- requires an exact version input such as `0.49.1`
113
+
- requires an exact version input such as `0.51.0`
122
114
- builds the extension and uploads `dist/leo-extension.vsix`
123
115
- publishes `aleohq.leo-extension` to the VS Code Marketplace
124
116
- leaves the repository version untouched, so a follow-up commit can sync repo
Copy file name to clipboardExpand all lines: packages/vscode/README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,19 @@ Today it supports:
51
51
- optional `leo-lsp` startup for semantic tokens and go-to-definition when the binary is installed locally
52
52
- approximate client-side go-to-definition fallback when `leo-lsp` is unavailable
53
53
54
+
### Install the language server
55
+
56
+
This extension is tested with [`leo-lsp` 4.4.1](https://github.com/ProvableHQ/leo/releases/tag/leo-lsp-v4.4.1).
57
+
58
+
Install the supported version from crates.io:
59
+
60
+
```bash
61
+
cargo install leo-lsp --version 4.4.1 --locked
62
+
leo-lsp --version
63
+
```
64
+
65
+
The extension finds `leo-lsp` in the Cargo binary directory, on `PATH`, or at the path in the `leo.languageServer.path` setting. The extension continues with fallback definitions if the binary is not available.
66
+
54
67
### 🛠️ Migration Status
55
68
56
69
The previous LSP-backed implementation is being replaced as part of the migration to faster Rust-based Leo tooling.
Copy file name to clipboardExpand all lines: packages/vscode/package.json
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
{
2
2
"name": "leo-extension",
3
3
"displayName": "Leo",
4
-
"version": "0.50.0",
4
+
"version": "0.51.0",
5
5
"publisher": "aleohq",
6
-
"description": "The official VS Code extension for Leo",
6
+
"description": "The official VS Code extension for Leo, tested with leo-lsp 4.4.1",
7
7
"license": "SEE LICENSE IN LICENSE.txt",
8
8
"engines": {
9
9
"vscode": "^1.82.0"
@@ -58,7 +58,7 @@
58
58
"leo.languageServer.path": {
59
59
"type": "string",
60
60
"default": "",
61
-
"markdownDescription": "Absolute or workspace-relative path to the `leo-lsp` executable. When unset, the extension searches common local development locations and `PATH`."
61
+
"markdownDescription": "Absolute or workspace-relative path to the `leo-lsp` executable. This release is tested with `leo-lsp` 4.4.1. When unset, the extension searches common local development locations and `PATH`."
"Leo 4.0 support includes tree-sitter-derived syntax tooling, optional leo-lsp startup, LSP-backed go-to-definition when leo-lsp is available, and approximate fallback definitions when it is not."
23
+
`Leo includes tree-sitter-derived syntax tooling, optional leo-lsp startup, LSP-backed go-to-definition, and approximate fallback definitions. This extension is tested with leo-lsp ${SUPPORTED_LEO_LSP_VERSION}.`
0 commit comments