@actions/languageserver 0.3.34 → 0.3.36

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/README.md CHANGED
@@ -84,6 +84,11 @@ export interface InitializationOptions {
84
84
  * Desired log level
85
85
  */
86
86
  logLevel?: LogLevel;
87
+
88
+ /**
89
+ * Experimental features that are opt-in
90
+ */
91
+ experimentalFeatures?: ExperimentalFeatures;
87
92
  }
88
93
  ```
89
94
 
@@ -100,6 +105,33 @@ const clientOptions: LanguageClientOptions = {
100
105
  const client = new LanguageClient("actions-language", "GitHub Actions Language Server", serverOptions, clientOptions);
101
106
  ```
102
107
 
108
+ ### Experimental Features
109
+
110
+ The language server supports opt-in experimental features via the `experimentalFeatures` initialization option. These features may change or be removed in between releases.
111
+
112
+ ```typescript
113
+ initializationOptions: {
114
+ experimentalFeatures: {
115
+ // Enable all experimental features
116
+ all: true,
117
+
118
+ // Or enable specific features
119
+ missingInputsQuickfix: true,
120
+ }
121
+ }
122
+ ```
123
+
124
+ **Available experimental features:**
125
+
126
+ | Feature | Description |
127
+ |---------|-------------|
128
+ | `missingInputsQuickfix` | Code action to add missing required inputs for actions |
129
+ | `blockScalarChompingWarning` | Warn when block scalars (`\|` or `>`) use implicit clip chomping, which adds a trailing newline that may be unintentional |
130
+
131
+ Individual feature flags take precedence over `all`. For example, `{ all: true, missingInputsQuickfix: false }` enables all experimental features except `missingInputsQuickfix`.
132
+
133
+ When a feature graduates to stable, its flag becomes a no-op and the feature will be enabled regardless of the configuration value.
134
+
103
135
  ### Standalone CLI
104
136
 
105
137
  After installing globally, you can run the language server directly: