@abaplint/core 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.
@@ -173,8 +173,14 @@ class RenamerHelper {
173
173
  ////////////////////////
174
174
  replaceRefs(refs, oldName, newName) {
175
175
  const changes = [];
176
+ const seen = new Set();
176
177
  // "zif_abapgit_auth~is_allowed" is a single token so only replace the first part of a token
177
178
  for (const r of refs) {
179
+ const key = r.getFilename() + ":" + r.getStart().getRow() + ":" + r.getStart().getCol();
180
+ if (seen.has(key)) {
181
+ continue;
182
+ }
183
+ seen.add(key);
178
184
  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);
179
185
  changes.push(vscode_languageserver_types_1.TextDocumentEdit.create({ uri: r.getFilename(), version: 1 }, [vscode_languageserver_types_1.TextEdit.replace(range, newName.toLowerCase())]));
180
186
  }
@@ -74,7 +74,7 @@ class Registry {
74
74
  }
75
75
  static abaplintVersion() {
76
76
  // magic, see build script "version.sh"
77
- return "2.115.24";
77
+ return "2.115.25";
78
78
  }
79
79
  getDDICReferences() {
80
80
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.115.24",
3
+ "version": "2.115.25",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",