css-variable-lsp 1.0.8-beta.1 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/test.yml +27 -0
- package/README.md +19 -4
- package/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ master ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ master ]
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
test:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
|
|
17
|
+
- name: Setup Node
|
|
18
|
+
uses: actions/setup-node@v4
|
|
19
|
+
with:
|
|
20
|
+
node-version: 20
|
|
21
|
+
cache: npm
|
|
22
|
+
|
|
23
|
+
- name: Install dependencies
|
|
24
|
+
run: npm ci
|
|
25
|
+
|
|
26
|
+
- name: Run tests
|
|
27
|
+
run: npm test
|
package/README.md
CHANGED
|
@@ -59,13 +59,13 @@ Environment variables:
|
|
|
59
59
|
- `CSS_LSP_COLOR_ONLY_VARIABLES=1` (same as `--color-only-variables`)
|
|
60
60
|
- `CSS_LSP_LOOKUP_FILES` (comma-separated glob patterns; ignored if CLI lookup flags are provided)
|
|
61
61
|
- `CSS_LSP_DEBUG=1` (enable debug logging)
|
|
62
|
-
- `CSS_LSP_PATH_DISPLAY=relative|absolute|abbreviated`
|
|
62
|
+
- `CSS_LSP_PATH_DISPLAY=relative|absolute|abbreviated`
|
|
63
63
|
- `CSS_LSP_PATH_DISPLAY_LENGTH=1` (same as `--path-display-length`)
|
|
64
64
|
|
|
65
|
-
`abbreviated` mode shortens each directory segment (except the final one) to the configured length, matching fish-style prompt shortening. The default is `relative` with a length of `1`.
|
|
66
|
-
|
|
67
65
|
Defaults:
|
|
68
66
|
|
|
67
|
+
- `--path-display`: `relative`
|
|
68
|
+
- `--path-display-length`: `1`
|
|
69
69
|
- Lookup globs:
|
|
70
70
|
- `**/*.css`
|
|
71
71
|
- `**/*.scss`
|
|
@@ -82,7 +82,22 @@ Defaults:
|
|
|
82
82
|
- `**/out/**`
|
|
83
83
|
- `**/.git/**`
|
|
84
84
|
|
|
85
|
-
Lookup globs accept standard glob patterns (including brace expansions like `**/*.{css,scss}`) and the default ignore list remains in effect even when lookup globs are provided.
|
|
85
|
+
`abbreviated` mode shortens each directory segment (except the final one) to the configured length, matching fish-style prompt shortening. Lookup globs accept standard glob patterns (including brace expansions like `**/*.{css,scss}`) and the default ignore list remains in effect even when lookup globs are provided.
|
|
86
|
+
|
|
87
|
+
### Completion Path Examples
|
|
88
|
+
|
|
89
|
+
Assume a variable is defined in `/Users/you/project/src/styles/theme.css` and your workspace root is `/Users/you/project`.
|
|
90
|
+
|
|
91
|
+
- `--path-display=relative` (default):
|
|
92
|
+
- `Defined in src/styles/theme.css`
|
|
93
|
+
- `--path-display=absolute`:
|
|
94
|
+
- `Defined in /Users/you/project/src/styles/theme.css`
|
|
95
|
+
- `--path-display=abbreviated --path-display-length=1`:
|
|
96
|
+
- `Defined in s/s/theme.css`
|
|
97
|
+
- `--path-display=abbreviated --path-display-length=2`:
|
|
98
|
+
- `Defined in sr/st/theme.css`
|
|
99
|
+
- `--path-display=abbreviated --path-display-length=0` (no shortening):
|
|
100
|
+
- `Defined in src/styles/theme.css`
|
|
86
101
|
|
|
87
102
|
## Cascade Awareness (Best-Effort)
|
|
88
103
|
|