Skip to content

Commit 1cee389

Browse files
committed
Implement samm-cli version management
1 parent 59b5443 commit 1cee389

12 files changed

Lines changed: 1057 additions & 93 deletions

extension/README.md

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,19 @@ VS Code extension for the Turtle language server. The extension supports prefix
44

55
## Requirements
66

7-
- Java must be available in `PATH`.
8-
- The server project must be checked out next to this extension at `../lsp-server`.
9-
- Build the Maven server JAR before launching the extension:
7+
- A Turtle/SAMM language server release must be available from a GitHub repository URL configured in VS Code.
8+
- Java must be available in `PATH` if the downloaded release asset is a JAR.
109

11-
```bash
12-
cd ../lsp-server
13-
mvn package
14-
```
10+
## Configuration
11+
12+
- `turtle.languageServerSettings.serverPort`
13+
- TCP port used for the socket connection to the server.
14+
- `turtle.languageServerSettings.automaticUpdateCheck`
15+
- If enabled, checks whether a newer GitHub release is available when a release-based executable is selected.
1516

16-
The extension starts the server from `../lsp-server/target/lsp-server.jar`.
17+
Use the command `Turtle: Select SAMM-CLI Executable` to choose either:
18+
- one of the latest 10 SAMM-CLI GitHub releases, or
19+
- a custom executable path from your local file system.
1720

1821
## Features
1922

@@ -29,13 +32,12 @@ The extension starts the server from `../lsp-server/target/lsp-server.jar`.
2932

3033
## Run The Server And Extension Together
3134

32-
1. Build the server in `../lsp-server` with `mvn package`.
33-
2. In this extension project, install dependencies with `npm install`.
34-
3. Compile the extension with `npm run compile`.
35-
4. Press `F5` in VS Code to open an Extension Development Host.
36-
5. Open a Turtle file such as [samples/valid.ttl](samples/valid.ttl) or your Aspect model file.
35+
1. In this extension project, install dependencies with `npm install`.
36+
2. Compile the extension with `npm run build`.
37+
3. Press `F5` in VS Code to open an Extension Development Host.
38+
4. Open a Turtle file such as [samples/valid.ttl](samples/valid.ttl) or your Aspect model file.
3739

38-
If the server JAR is missing, the extension shows an error and does not start the language client.
40+
If the server cannot be downloaded or started, the extension shows an error and leaves a detailed message in the Turtle LSP output channel.
3941

4042
## Validation Behavior
4143

@@ -62,6 +64,8 @@ When each validation runs:
6264

6365
- `Turtle LSP: Validate Aspect Model Now`
6466
- Sends a server request for the active Turtle document.
67+
- `Turtle: Select SAMM-CLI Executable`
68+
- Opens a quick pick with the latest 10 GitHub releases and a custom-path option.
6569

6670
## UX During Long-Running Validation
6771

extension/package-lock.json

Lines changed: 175 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)