@abaplint/cli 2.108.12 → 2.108.14

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/build/cli.js +12 -5
  2. package/package.json +3 -3
package/build/cli.js CHANGED
@@ -4619,9 +4619,9 @@ const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/co
4619
4619
  const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
4620
4620
  class CondBody extends combi_1.Expression {
4621
4621
  getRunnable() {
4622
- const when = (0, combi_1.seq)("WHEN", (0, combi_1.alt)(_1.Cond, _1.Source), "THEN", (0, combi_1.alt)(_1.Source, _1.Throw));
4623
- const elsee = (0, combi_1.seq)("ELSE", (0, combi_1.alt)(_1.Source, _1.Throw));
4624
- return (0, combi_1.seq)((0, combi_1.opt)(_1.Let), (0, combi_1.plus)(when), (0, combi_1.opt)(elsee));
4622
+ const when = (0, combi_1.seq)("WHEN", (0, combi_1.altPrio)(_1.Cond, _1.Source), "THEN", (0, combi_1.altPrio)(_1.Throw, _1.Source));
4623
+ const elsee = (0, combi_1.seq)("ELSE", (0, combi_1.altPrio)(_1.Throw, _1.Source));
4624
+ return (0, combi_1.seq)((0, combi_1.optPrio)(_1.Let), (0, combi_1.plusPrio)(when), (0, combi_1.optPrio)(elsee));
4625
4625
  }
4626
4626
  }
4627
4627
  exports.CondBody = CondBody;
@@ -42143,6 +42143,9 @@ class CodeActions {
42143
42143
  const diagnostics = [];
42144
42144
  const fixes = [];
42145
42145
  for (const i of issues) {
42146
+ if (i.getKey() !== key) {
42147
+ continue;
42148
+ }
42146
42149
  const fix = i.getDefaultFix();
42147
42150
  if (fix === undefined) {
42148
42151
  continue;
@@ -42831,10 +42834,11 @@ exports.Highlight = Highlight;
42831
42834
 
42832
42835
  Object.defineProperty(exports, "__esModule", ({ value: true }));
42833
42836
  exports.Hover = void 0;
42837
+ const Tokens = __webpack_require__(/*! ../abap/1_lexer/tokens */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/index.js");
42838
+ const Statements = __webpack_require__(/*! ../abap/2_statements/statements */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/index.js");
42834
42839
  const LServer = __webpack_require__(/*! vscode-languageserver-types */ "./node_modules/vscode-languageserver-types/lib/umd/main.js");
42835
42840
  const _abap_object_1 = __webpack_require__(/*! ../objects/_abap_object */ "./node_modules/@abaplint/core/build/src/objects/_abap_object.js");
42836
42841
  const _lsp_utils_1 = __webpack_require__(/*! ./_lsp_utils */ "./node_modules/@abaplint/core/build/src/lsp/_lsp_utils.js");
42837
- const Tokens = __webpack_require__(/*! ../abap/1_lexer/tokens */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/index.js");
42838
42842
  const _lookup_1 = __webpack_require__(/*! ./_lookup */ "./node_modules/@abaplint/core/build/src/lsp/_lookup.js");
42839
42843
  class Hover {
42840
42844
  constructor(reg) {
@@ -42859,6 +42863,9 @@ class Hover {
42859
42863
  || found.token instanceof Tokens.StringTemplateMiddle) {
42860
42864
  return { kind: LServer.MarkupKind.Markdown, value: "String Template" };
42861
42865
  }
42866
+ else if (found.snode.get() instanceof Statements.Define && found.stack.length === 2) {
42867
+ return { kind: LServer.MarkupKind.Markdown, value: "Macro Name" };
42868
+ }
42862
42869
  else if (found.token instanceof Tokens.Comment) {
42863
42870
  let type = "Comment";
42864
42871
  if (found.token.getStr().startsWith(`"!`)) {
@@ -51642,7 +51649,7 @@ class Registry {
51642
51649
  }
51643
51650
  static abaplintVersion() {
51644
51651
  // magic, see build script "version.sh"
51645
- return "2.108.12";
51652
+ return "2.108.14";
51646
51653
  }
51647
51654
  getDDICReferences() {
51648
51655
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.108.12",
3
+ "version": "2.108.14",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,12 +38,12 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.108.12",
41
+ "@abaplint/core": "^2.108.14",
42
42
  "@types/chai": "^4.3.16",
43
43
  "@types/glob": "^8.1.0",
44
44
  "@types/minimist": "^1.2.5",
45
45
  "@types/mocha": "^10.0.6",
46
- "@types/node": "^20.13.0",
46
+ "@types/node": "^20.14.2",
47
47
  "@types/progress": "^2.0.7",
48
48
  "chai": "^4.4.1",
49
49
  "chalk": "^5.3.0",