@actions/languageserver 0.3.43 → 0.3.44

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.
Files changed (2) hide show
  1. package/dist/cli.bundle.cjs +31 -39
  2. package/package.json +4 -4
@@ -18757,39 +18757,6 @@ function objectAccess(obj, idx) {
18757
18757
  return new Null();
18758
18758
  }
18759
18759
 
18760
- // ../expressions/dist/features.js
18761
- var allFeatureKeys = [
18762
- "missingInputsQuickfix",
18763
- "blockScalarChompingWarning",
18764
- "allowCaseFunction"
18765
- ];
18766
- var FeatureFlags = class {
18767
- constructor(features) {
18768
- this.features = features ?? {};
18769
- }
18770
- /**
18771
- * Check if an experimental feature is enabled.
18772
- *
18773
- * Resolution order:
18774
- * 1. Explicit feature flag (if set)
18775
- * 2. `all` flag (if set)
18776
- * 3. false (default)
18777
- */
18778
- isEnabled(feature) {
18779
- const explicit = this.features[feature];
18780
- if (explicit !== void 0) {
18781
- return explicit;
18782
- }
18783
- return this.features.all ?? false;
18784
- }
18785
- /**
18786
- * Returns list of all enabled experimental features.
18787
- */
18788
- getEnabledFeatures() {
18789
- return allFeatureKeys.filter((key) => this.isEnabled(key));
18790
- }
18791
- };
18792
-
18793
18760
  // ../expressions/dist/parser.js
18794
18761
  var Parser = class {
18795
18762
  /**
@@ -19068,7 +19035,7 @@ function complete(input, context, extensionFunctions, functions, featureFlags) {
19068
19035
  }
19069
19036
  if (tokenIdx < 0) {
19070
19037
  const result2 = contextKeys(context);
19071
- result2.push(...functionItems(extensionFunctions, featureFlags));
19038
+ result2.push(...functionItems(extensionFunctions));
19072
19039
  return result2;
19073
19040
  }
19074
19041
  const pathTokenVector = tokenInputVector.slice(0, tokenIdx);
@@ -19079,13 +19046,9 @@ function complete(input, context, extensionFunctions, functions, featureFlags) {
19079
19046
  const result = ev.evaluate();
19080
19047
  return contextKeys(result);
19081
19048
  }
19082
- function functionItems(extensionFunctions, featureFlags) {
19049
+ function functionItems(extensionFunctions) {
19083
19050
  const result = [];
19084
- const flags = featureFlags ?? new FeatureFlags();
19085
19051
  for (const fdef of [...Object.values(wellKnownFunctions), ...extensionFunctions]) {
19086
- if (fdef.name === "case" && !flags.isEnabled("allowCaseFunction")) {
19087
- continue;
19088
- }
19089
19052
  result.push({
19090
19053
  label: fdef.name,
19091
19054
  description: fdef.description,
@@ -19173,6 +19136,35 @@ var DescriptionDictionary = class extends Dictionary {
19173
19136
  }
19174
19137
  };
19175
19138
 
19139
+ // ../expressions/dist/features.js
19140
+ var allFeatureKeys = ["missingInputsQuickfix", "blockScalarChompingWarning"];
19141
+ var FeatureFlags = class {
19142
+ constructor(features) {
19143
+ this.features = features ?? {};
19144
+ }
19145
+ /**
19146
+ * Check if an experimental feature is enabled.
19147
+ *
19148
+ * Resolution order:
19149
+ * 1. Explicit feature flag (if set)
19150
+ * 2. `all` flag (if set)
19151
+ * 3. false (default)
19152
+ */
19153
+ isEnabled(feature) {
19154
+ const explicit = this.features[feature];
19155
+ if (explicit !== void 0) {
19156
+ return explicit;
19157
+ }
19158
+ return this.features.all ?? false;
19159
+ }
19160
+ /**
19161
+ * Returns list of all enabled experimental features.
19162
+ */
19163
+ getEnabledFeatures() {
19164
+ return allFeatureKeys.filter((key) => this.isEnabled(key));
19165
+ }
19166
+ };
19167
+
19176
19168
  // ../workflow-parser/dist/templates/tokens/types.js
19177
19169
  var TokenType2;
19178
19170
  (function(TokenType3) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@actions/languageserver",
3
- "version": "0.3.43",
3
+ "version": "0.3.44",
4
4
  "description": "Language server for GitHub Actions",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -48,8 +48,8 @@
48
48
  "actions-languageserver": "./bin/actions-languageserver"
49
49
  },
50
50
  "dependencies": {
51
- "@actions/languageservice": "^0.3.43",
52
- "@actions/workflow-parser": "^0.3.43",
51
+ "@actions/languageservice": "^0.3.44",
52
+ "@actions/workflow-parser": "^0.3.44",
53
53
  "@octokit/rest": "^21.1.1",
54
54
  "@octokit/types": "^9.0.0",
55
55
  "vscode-languageserver": "^8.0.2",
@@ -78,5 +78,5 @@
78
78
  "ts-jest": "^29.0.3",
79
79
  "typescript": "^4.8.4"
80
80
  },
81
- "gitHead": "448180bd7fb42b32566d50239638e51ad8ee78d2"
81
+ "gitHead": "f29f508cecef1d6066ad5e699522f25c9fce2108"
82
82
  }