@abaplint/cli 2.115.24 → 2.115.25

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 +7 -1
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -53270,8 +53270,14 @@ class RenamerHelper {
53270
53270
  ////////////////////////
53271
53271
  replaceRefs(refs, oldName, newName) {
53272
53272
  const changes = [];
53273
+ const seen = new Set();
53273
53274
  // "zif_abapgit_auth~is_allowed" is a single token so only replace the first part of a token
53274
53275
  for (const r of refs) {
53276
+ const key = r.getFilename() + ":" + r.getStart().getRow() + ":" + r.getStart().getCol();
53277
+ if (seen.has(key)) {
53278
+ continue;
53279
+ }
53280
+ seen.add(key);
53275
53281
  const range = vscode_languageserver_types_1.Range.create(r.getStart().getRow() - 1, r.getStart().getCol() - 1, r.getStart().getRow() - 1, r.getStart().getCol() - 1 + oldName.length);
53276
53282
  changes.push(vscode_languageserver_types_1.TextDocumentEdit.create({ uri: r.getFilename(), version: 1 }, [vscode_languageserver_types_1.TextEdit.replace(range, newName.toLowerCase())]));
53277
53283
  }
@@ -55498,7 +55504,7 @@ class Registry {
55498
55504
  }
55499
55505
  static abaplintVersion() {
55500
55506
  // magic, see build script "version.sh"
55501
- return "2.115.24";
55507
+ return "2.115.25";
55502
55508
  }
55503
55509
  getDDICReferences() {
55504
55510
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.115.24",
3
+ "version": "2.115.25",
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.115.24",
41
+ "@abaplint/core": "^2.115.25",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",