@abaplint/cli 2.113.4 → 2.113.6

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 +27 -2
  2. package/package.json +3 -3
package/build/cli.js CHANGED
@@ -35218,6 +35218,7 @@ exports.SELECTION_EVENTS = [
35218
35218
  Statements.EndOfSelection,
35219
35219
  Statements.Initialization,
35220
35220
  Statements.TopOfPage,
35221
+ Statements.LoadOfProgram,
35221
35222
  Statements.EndOfPage,
35222
35223
  ];
35223
35224
  exports.DECLARATION_STUFF = [
@@ -42478,8 +42479,10 @@ const _typed_identifier_1 = __webpack_require__(/*! ../abap/types/_typed_identif
42478
42479
  const _reference_1 = __webpack_require__(/*! ../abap/5_syntax/_reference */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_reference.js");
42479
42480
  const _builtin_1 = __webpack_require__(/*! ../abap/5_syntax/_builtin */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_builtin.js");
42480
42481
  const _scope_type_1 = __webpack_require__(/*! ../abap/5_syntax/_scope_type */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_scope_type.js");
42482
+ const objects_1 = __webpack_require__(/*! ../objects */ "./node_modules/@abaplint/core/build/src/objects/index.js");
42481
42483
  const types_1 = __webpack_require__(/*! ../abap/types */ "./node_modules/@abaplint/core/build/src/abap/types/index.js");
42482
42484
  const _statement_1 = __webpack_require__(/*! ../abap/2_statements/statements/_statement */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/_statement.js");
42485
+ const include_graph_1 = __webpack_require__(/*! ../utils/include_graph */ "./node_modules/@abaplint/core/build/src/utils/include_graph.js");
42483
42486
  class LSPLookup {
42484
42487
  static lookup(cursor, reg, obj) {
42485
42488
  var _a, _b;
@@ -42492,7 +42495,17 @@ class LSPLookup {
42492
42495
  if (fm) {
42493
42496
  return { hover: "Function Module " + fm };
42494
42497
  }
42495
- const bottomScope = new syntax_1.SyntaxLogic(reg, obj).run().spaghetti.lookupPosition(cursor.identifier.getStart(), cursor.identifier.getFilename());
42498
+ let main = obj;
42499
+ if (obj instanceof objects_1.Program && obj.isInclude()) {
42500
+ // todo: this is slow
42501
+ const ig = new include_graph_1.IncludeGraph(reg);
42502
+ const mains = ig.listMainForInclude(cursor.identifier.getFilename());
42503
+ if (mains.length === 1) {
42504
+ // yea, well, or it has to be a popup
42505
+ main = reg.findObjectForFile(reg.getFileByName(mains[0])) || obj;
42506
+ }
42507
+ }
42508
+ const bottomScope = new syntax_1.SyntaxLogic(reg, main).run().spaghetti.lookupPosition(cursor.identifier.getStart(), cursor.identifier.getFilename());
42496
42509
  if (bottomScope === undefined) {
42497
42510
  return undefined;
42498
42511
  }
@@ -46629,6 +46642,7 @@ class DataElement extends _abstract_object_1.AbstractObject {
46629
46642
  }
46630
46643
  getDescription() {
46631
46644
  var _a;
46645
+ this.parse();
46632
46646
  return (_a = this.parsedXML) === null || _a === void 0 ? void 0 : _a.description;
46633
46647
  }
46634
46648
  getAllowedNaming() {
@@ -46646,6 +46660,11 @@ class DataElement extends _abstract_object_1.AbstractObject {
46646
46660
  this.parse();
46647
46661
  return (_a = this.parsedXML) === null || _a === void 0 ? void 0 : _a.domname;
46648
46662
  }
46663
+ getTexts() {
46664
+ var _a;
46665
+ this.parse();
46666
+ return (_a = this.parsedXML) === null || _a === void 0 ? void 0 : _a.texts;
46667
+ }
46649
46668
  parseType(reg) {
46650
46669
  const references = [];
46651
46670
  let lookup = undefined;
@@ -46704,6 +46723,12 @@ class DataElement extends _abstract_object_1.AbstractObject {
46704
46723
  datatype: dd04v === null || dd04v === void 0 ? void 0 : dd04v.DATATYPE,
46705
46724
  leng: dd04v === null || dd04v === void 0 ? void 0 : dd04v.LENG,
46706
46725
  decimals: dd04v === null || dd04v === void 0 ? void 0 : dd04v.DECIMALS,
46726
+ texts: {
46727
+ short: dd04v === null || dd04v === void 0 ? void 0 : dd04v.SCRTEXT_S,
46728
+ medium: dd04v === null || dd04v === void 0 ? void 0 : dd04v.SCRTEXT_M,
46729
+ long: dd04v === null || dd04v === void 0 ? void 0 : dd04v.SCRTEXT_L,
46730
+ heading: dd04v === null || dd04v === void 0 ? void 0 : dd04v.REPTEXT,
46731
+ },
46707
46732
  };
46708
46733
  const end = Date.now();
46709
46734
  return { updated: true, runtime: end - start };
@@ -52683,7 +52708,7 @@ class Registry {
52683
52708
  }
52684
52709
  static abaplintVersion() {
52685
52710
  // magic, see build script "version.sh"
52686
- return "2.113.4";
52711
+ return "2.113.6";
52687
52712
  }
52688
52713
  getDDICReferences() {
52689
52714
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.4",
3
+ "version": "2.113.6",
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.113.4",
41
+ "@abaplint/core": "^2.113.6",
42
42
  "@types/chai": "^4.3.19",
43
43
  "@types/glob": "^8.1.0",
44
44
  "@types/minimist": "^1.2.5",
45
45
  "@types/mocha": "^10.0.7",
46
- "@types/node": "^22.5.2",
46
+ "@types/node": "^22.5.4",
47
47
  "@types/progress": "^2.0.7",
48
48
  "chai": "^4.5.0",
49
49
  "chalk": "^5.3.0",