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
A [VS Code](https://code.visualstudio.com) extension that supports you in creating and updating [ldproxy](https://docs.ldproxy.net) configurations.
4
4
5
5
## Current state
6
6
7
-
The first stable release (`v1.0.0`) is available.
8
-
9
-
### Distribution
10
-
11
-
Currently the only way to use the extension is the provided docker image that contains an open source version of VS Code for the Web.
7
+
- The current stable release is `v1.1.0`.
8
+
- It is available as a pre-release on the VS Code Marketplace (currently only for macOS and Linux).
9
+
- It can be used as a web application with the docker image that contains an open source version of VS Code for the Web.
12
10
13
11
### Features
14
12
15
13
- Command `Create new entities`: provides a graphical wizard to automatically generate provider and service configurations from data sources.
16
-
- IntelliSense: shows available properties in YAML configuration files.
14
+
- Command `Create new values`: provides a graphical wizard to automatically generate value configurations, currently only MapLibre styles.
15
+
- IntelliSense: autocompletion, shows available properties in YAML configuration files.
17
16
- Syntax checks: detects unknown or deprecated properties in YAML configuration files.
18
17
- Tooltips: shows documentation for properties in YAML configuration files.
19
18
20
-
## Outlook
19
+
### Limitations
20
+
21
+
- The extension is not yet available for Windows, only MacOS and Linux are supported for now.
22
+
- The workspace root needs to be a ldproxy store directory for the extension to work properly. Parent directories that contain multiple store directories are not yet supported, and neither are multi-root workspaces.
23
+
- Tile Providers cannot be generated yet.
21
24
22
-
-`v1.1.0` automatically generate and edit MapLibre styles
23
-
-`v2.0.0` general availability of the extension for VS Code Desktop (macOS, Windows, Linux)
25
+
### Outlook
26
+
27
+
-`v2.0.0` general availability of the extension for VS Code Desktop (macOS, Windows, Linux), no known limitations
24
28
25
29
## Installation
26
30
31
+
### VS Code Desktop
32
+
33
+
Open the extensions view from the activity bar and search for _ldproxy_, then install the extension _ldproxy for VS Code_. [This](https://marketplace.visualstudio.com/items?itemName=iide.ldproxy-editor) is a direct link to the extension on the VS Code Marketplace.
34
+
35
+
When installed, you may open a ldproxy store directory in VS Code, for example by using `File -> Open Folder` or by calling `code` in a terminal. You can then start editing your files.
36
+
37
+
### Docker
38
+
27
39
The docker image is available at `ghcr.io/ldproxy/editor`. It expects the workspace to be mounted at `/data`. The application runs on port `80`.
28
40
29
-
To start the editor with your ldproxy configuration directory in `/home/user/ldproxycfg` and access it at `http://localhost:8080`:
41
+
To start the editor with your ldproxy configuration directory in `/path/to/ldproxy/cfg` and access it at `http://localhost:8080`:
30
42
31
43
```sh
32
-
docker run -d -p 8080:80 -v /home/user/ldproxycfg:/data ghcr.io/ldproxy/editor
44
+
docker run -d -p 8080:80 -v /path/to/ldproxy/cfg:/data ghcr.io/ldproxy/editor
33
45
```
34
46
47
+
When you open the application at `http://localhost:8080` in the browser, you will see the mounted ldproxy configuration directory on the left. You can now start to edit your files.
48
+
35
49
> [!NOTE]
36
50
> Accessing the editor via `http` only works with `localhost`. If you want to setup an editor for remote access, you need a reverse proxy which provides `https`.
37
51
38
52
## Usage
39
53
40
-
When you open the application at `http://localhost:8080` in the browser, you will see the mounted ldproxy configuration directory on the left. You can now start to edit your files.
54
+
Unknown or deprecated properties will automatically be marked in open files. Hovering over a property will show the documentation.
41
55
42
56
For general help, check the documentation for [VS Code](https://code.visualstudio.com/docs).
43
57
58
+
### IntelliSense (autocompletion)
59
+
60
+
To get a list of all available properties in a certain place in a YAML configuration file, you can press `Ctrl+Space`. (It is called `Trigger suggest` in the [command palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette), which also shows the configured hotkey.)
61
+
You can then use the cursor keys to navigate the suggestions and choose one with `Enter`. You might also start typing before or after triggering to narrow the suggestions.
62
+
63
+

64
+
44
65
### Creating new entities
45
66
46
67
When you open the [command palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette) and start typing `ldproxy`, the command `ldproxy: Create new entities` should appear at the top. Upon selecting, the graphical wizard will open in a new tab.
@@ -50,11 +71,12 @@ It allows you to automatically generate provider and service configurations from
50
71
> [!NOTE]
51
72
> When trying to access a _PostgreSQL_ database on the same host where the docker container is runnning, you have to use `host.docker.internal` instead of `localhost`.
52
73
53
-

74
+

54
75
55
-
### IntelliSense (autocompletion)
76
+
### Creating new values
56
77
57
-
To get a list of all available properties in a certain place in a YAML configuration file, you can press `Ctrl+Space`. (It is called `Trigger suggest` in the [command palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette), which also shows the configured hotkey.)
58
-
You can then use the cursor keys to navigate the suggestions and choose one with `Enter`. You might also start typing before or after triggering to narrow the suggestions.
78
+
When you open the [command palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette) and start typing `ldproxy`, the command `ldproxy: Create new values` should appear near the top. Upon selecting, the graphical wizard will open in a new tab.
79
+
80
+
It currently only allows you to automatically generate a MapLibre style from a service configuration.
0 commit comments