@actions/languageserver 0.3.45 → 0.3.46
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/dist/cli.bundle.cjs +39 -31
- package/package.json +4 -4
package/dist/cli.bundle.cjs
CHANGED
|
@@ -18757,6 +18757,39 @@ 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
|
+
|
|
18760
18793
|
// ../expressions/dist/parser.js
|
|
18761
18794
|
var Parser = class {
|
|
18762
18795
|
/**
|
|
@@ -19035,7 +19068,7 @@ function complete(input, context, extensionFunctions, functions, featureFlags) {
|
|
|
19035
19068
|
}
|
|
19036
19069
|
if (tokenIdx < 0) {
|
|
19037
19070
|
const result2 = contextKeys(context);
|
|
19038
|
-
result2.push(...functionItems(extensionFunctions));
|
|
19071
|
+
result2.push(...functionItems(extensionFunctions, featureFlags));
|
|
19039
19072
|
return result2;
|
|
19040
19073
|
}
|
|
19041
19074
|
const pathTokenVector = tokenInputVector.slice(0, tokenIdx);
|
|
@@ -19046,9 +19079,13 @@ function complete(input, context, extensionFunctions, functions, featureFlags) {
|
|
|
19046
19079
|
const result = ev.evaluate();
|
|
19047
19080
|
return contextKeys(result);
|
|
19048
19081
|
}
|
|
19049
|
-
function functionItems(extensionFunctions) {
|
|
19082
|
+
function functionItems(extensionFunctions, featureFlags) {
|
|
19050
19083
|
const result = [];
|
|
19084
|
+
const flags = featureFlags ?? new FeatureFlags();
|
|
19051
19085
|
for (const fdef of [...Object.values(wellKnownFunctions), ...extensionFunctions]) {
|
|
19086
|
+
if (fdef.name === "case" && !flags.isEnabled("allowCaseFunction")) {
|
|
19087
|
+
continue;
|
|
19088
|
+
}
|
|
19052
19089
|
result.push({
|
|
19053
19090
|
label: fdef.name,
|
|
19054
19091
|
description: fdef.description,
|
|
@@ -19136,35 +19173,6 @@ var DescriptionDictionary = class extends Dictionary {
|
|
|
19136
19173
|
}
|
|
19137
19174
|
};
|
|
19138
19175
|
|
|
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
|
-
|
|
19168
19176
|
// ../workflow-parser/dist/templates/tokens/types.js
|
|
19169
19177
|
var TokenType2;
|
|
19170
19178
|
(function(TokenType3) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@actions/languageserver",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.46",
|
|
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.
|
|
52
|
-
"@actions/workflow-parser": "^0.3.
|
|
51
|
+
"@actions/languageservice": "^0.3.46",
|
|
52
|
+
"@actions/workflow-parser": "^0.3.46",
|
|
53
53
|
"@octokit/rest": "^21.1.1",
|
|
54
54
|
"@octokit/types": "^9.0.0",
|
|
55
55
|
"vscode-languageserver": "^8.0.2",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"ts-jest": "^29.0.3",
|
|
80
80
|
"typescript": "^5.8.3"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "8c0a3a947b41134c58b0a7742e4d6f59b1171287"
|
|
83
83
|
}
|