@abaplint/runtime 2.1.8 → 2.1.9
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.
|
@@ -23,7 +23,7 @@ function replace(text, w) {
|
|
|
23
23
|
}
|
|
24
24
|
return text.trim();
|
|
25
25
|
}
|
|
26
|
-
async function findText(context, arbgb, msgnr) {
|
|
26
|
+
async function findText(context, arbgb, msgnr, msgty) {
|
|
27
27
|
let text = undefined;
|
|
28
28
|
if (arbgb && msgnr) {
|
|
29
29
|
try {
|
|
@@ -40,7 +40,7 @@ async function findText(context, arbgb, msgnr) {
|
|
|
40
40
|
}
|
|
41
41
|
if (text === undefined) {
|
|
42
42
|
// fallback
|
|
43
|
-
text = arbgb + ":" + msgnr + " &1 &2 &3 &4";
|
|
43
|
+
text = msgty + ":" + arbgb + ":" + msgnr + " &1 &2 &3 &4";
|
|
44
44
|
}
|
|
45
45
|
return text;
|
|
46
46
|
}
|
|
@@ -69,7 +69,7 @@ class MessageStatement {
|
|
|
69
69
|
abap.builtin.sy.get().msgno.set(msgnr);
|
|
70
70
|
// @ts-ignore
|
|
71
71
|
abap.builtin.sy.get().msgty.set(msgty);
|
|
72
|
-
const text = await findText(this.context, arbgb, msgnr);
|
|
72
|
+
const text = await findText(this.context, arbgb, msgnr, msgty);
|
|
73
73
|
const replaced = replace(text, options.with);
|
|
74
74
|
if (options.into) {
|
|
75
75
|
options.into.set(replaced);
|