@abaplint/cli 2.113.5 → 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.
- package/build/cli.js +14 -2
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -42479,8 +42479,10 @@ const _typed_identifier_1 = __webpack_require__(/*! ../abap/types/_typed_identif
|
|
|
42479
42479
|
const _reference_1 = __webpack_require__(/*! ../abap/5_syntax/_reference */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_reference.js");
|
|
42480
42480
|
const _builtin_1 = __webpack_require__(/*! ../abap/5_syntax/_builtin */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_builtin.js");
|
|
42481
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");
|
|
42482
42483
|
const types_1 = __webpack_require__(/*! ../abap/types */ "./node_modules/@abaplint/core/build/src/abap/types/index.js");
|
|
42483
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");
|
|
42484
42486
|
class LSPLookup {
|
|
42485
42487
|
static lookup(cursor, reg, obj) {
|
|
42486
42488
|
var _a, _b;
|
|
@@ -42493,7 +42495,17 @@ class LSPLookup {
|
|
|
42493
42495
|
if (fm) {
|
|
42494
42496
|
return { hover: "Function Module " + fm };
|
|
42495
42497
|
}
|
|
42496
|
-
|
|
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());
|
|
42497
42509
|
if (bottomScope === undefined) {
|
|
42498
42510
|
return undefined;
|
|
42499
42511
|
}
|
|
@@ -52696,7 +52708,7 @@ class Registry {
|
|
|
52696
52708
|
}
|
|
52697
52709
|
static abaplintVersion() {
|
|
52698
52710
|
// magic, see build script "version.sh"
|
|
52699
|
-
return "2.113.
|
|
52711
|
+
return "2.113.6";
|
|
52700
52712
|
}
|
|
52701
52713
|
getDDICReferences() {
|
|
52702
52714
|
return this.ddicReferences;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.113.
|
|
3
|
+
"version": "2.113.6",
|
|
4
4
|
"description": "abaplint - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://abaplint.org",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@abaplint/core": "^2.113.
|
|
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",
|