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
-**JDK 17** for `./gradlew` (e.g. `JAVA_HOME=/opt/homebrew/opt/openjdk@17`). Java 25 + older Gradle showed a useless `What went wrong: 25` message.
9
+
-**Plugin ZIP**: `./gradlew buildPlugin` (or `./gradlew build` — `build` depends on `buildPlugin` in `build.gradle.kts`). Output: `build/distributions/*.zip`.
10
+
-**`./gradlew runIde`**: launches a sandbox IDE with the plugin for manual testing and opens the monorepo root (`../..` from `packages/intellij-plugin`) automatically.
11
+
12
+
## UX / editor (recent)
13
+
-**Syntax (comments/decorators)**: Comment lines now tokenize decorators with structure (`@name`, `=`, function name, arg keys/values, commas/parens) instead of a single flat comment token. New token families include `DECORATOR`, `DECORATOR_VALUE`, `DECORATOR_ARG_KEY`, and `DECORATOR_ARG_VALUE`.
14
+
-**Syntax (assignment values)**: Assignment values now tokenize resolver function names (`if`, `eq`, etc.) and refs (`$ENV`, `${ENV}`) separately from generic value text, improving parity with VS Code highlighting.
15
+
-**Incremental lexing stability**: Lexer now re-tokenizes from true line start (then trims to current offset), preventing state drift where highlights looked correct initially but degraded after incremental rehighlight.
16
+
-**Color scheme page**: Added descriptors for decorator subparts, value function calls, and value references in **Settings → Editor → Color Scheme → Env Spec**.
17
+
-**Icon**: `src/main/resources/icons/env-spec.svg`; `EnvSpecFileType.getIcon()` via `IconLoader`.
18
+
-**Enter on `#` lines**: `EnvSpecCommentEnterHandler` (`EnterHandlerDelegate`) inserts newline + indent + `# `; registered in `plugin.xml` as `enterHandlerDelegate`.
19
+
-**Completion insertion behavior**:
20
+
- Fixed duplicate/append issues on accept (Tab/Enter) by replacing `startOffset..tailOffset` instead of static line ranges.
21
+
- Prevents duplicate `@` when accepting decorator suggestions after typing `@`.
22
+
- Type-option completions now insert `optionName=` and place caret directly after `=`.
23
+
- Added snippet normalization for catalog insert text so VS Code-style placeholders are not inserted literally.
Copy file name to clipboardExpand all lines: packages/intellij-plugin/README.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,10 +22,16 @@ Inspired by the [VS Code / Open VSX extension](../../vscode-plugin):
22
22
23
23
-**Documentation** on hover for decorators
24
24
25
-
-**Syntax highlighting** for .env and .env.* files
25
+
-**Syntax highlighting** for .env and .env.* files:
26
+
- Comment lines (`# …`) vs assignments (`KEY=value`, optional `export`)
27
+
- Colors follow **Settings → Editor → Color Scheme → Env Spec** (defaults match line comments, keywords, keys, `=`, and string-like values)
28
+
29
+
-**Project view icon** for registered `.env` / `.env.*` files
26
30
27
31
-**Toggle line comment** (`# `) support
28
32
33
+
-**Enter on a `#` line** inserts a new line with the same indent and `# ` (block comment continuation)
34
+
29
35
## Installation
30
36
31
37
### From JetBrains Marketplace
@@ -48,7 +54,7 @@ Inspired by the [VS Code / Open VSX extension](../../vscode-plugin):
48
54
## Requirements
49
55
50
56
- IntelliJ IDEA 2024.3+ or WebStorm 2024.3+
51
-
-**Java 17** (for building) — Java 24/25 are not yet supported by Gradle 8.x and the IntelliJ Platform plugin
57
+
-**Java 17** (for building) — use a supported JDK for the Gradle version in this repo (see Troubleshooting if you see a cryptic `25` error with Java 25)
0 commit comments