sap-ux-sap-systems-ext 0.3.4 → 0.3.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/dist/extension.js +118 -40
- package/package.json +5 -5
package/dist/extension.js
CHANGED
|
@@ -54324,7 +54324,7 @@ var require_package6 = __commonJS({
|
|
|
54324
54324
|
"../telemetry/package.json"(exports2, module2) {
|
|
54325
54325
|
module2.exports = {
|
|
54326
54326
|
name: "@sap-ux/telemetry",
|
|
54327
|
-
version: "0.6.
|
|
54327
|
+
version: "0.6.80",
|
|
54328
54328
|
description: "Library for sending usage telemetry data",
|
|
54329
54329
|
repository: {
|
|
54330
54330
|
type: "git",
|
|
@@ -135231,7 +135231,7 @@ var require_utils13 = __commonJS({
|
|
|
135231
135231
|
}
|
|
135232
135232
|
});
|
|
135233
135233
|
|
|
135234
|
-
// ../../node_modules/.pnpm/jsonc-parser@3.
|
|
135234
|
+
// ../../node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/scanner.js
|
|
135235
135235
|
function createScanner(text, ignoreTrivia = false) {
|
|
135236
135236
|
const len = text.length;
|
|
135237
135237
|
let pos = 0, value = "", tokenOffset = 0, token2 = 16, lineNumber = 0, lineStartOffset = 0, tokenLineStartOffset = 0, prevTokenLineStartOffset = 0, scanError = 0;
|
|
@@ -135570,7 +135570,7 @@ function isDigit(ch) {
|
|
|
135570
135570
|
}
|
|
135571
135571
|
var CharacterCodes;
|
|
135572
135572
|
var init_scanner = __esm({
|
|
135573
|
-
"../../node_modules/.pnpm/jsonc-parser@3.
|
|
135573
|
+
"../../node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/scanner.js"() {
|
|
135574
135574
|
"use strict";
|
|
135575
135575
|
(function(CharacterCodes2) {
|
|
135576
135576
|
CharacterCodes2[CharacterCodes2["lineFeed"] = 10] = "lineFeed";
|
|
@@ -135657,7 +135657,43 @@ var init_scanner = __esm({
|
|
|
135657
135657
|
}
|
|
135658
135658
|
});
|
|
135659
135659
|
|
|
135660
|
-
// ../../node_modules/.pnpm/jsonc-parser@3.
|
|
135660
|
+
// ../../node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/string-intern.js
|
|
135661
|
+
var cachedSpaces, maxCachedValues, cachedBreakLinesWithSpaces, supportedEols;
|
|
135662
|
+
var init_string_intern = __esm({
|
|
135663
|
+
"../../node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/string-intern.js"() {
|
|
135664
|
+
cachedSpaces = new Array(20).fill(0).map((_, index) => {
|
|
135665
|
+
return " ".repeat(index);
|
|
135666
|
+
});
|
|
135667
|
+
maxCachedValues = 200;
|
|
135668
|
+
cachedBreakLinesWithSpaces = {
|
|
135669
|
+
" ": {
|
|
135670
|
+
"\n": new Array(maxCachedValues).fill(0).map((_, index) => {
|
|
135671
|
+
return "\n" + " ".repeat(index);
|
|
135672
|
+
}),
|
|
135673
|
+
"\r": new Array(maxCachedValues).fill(0).map((_, index) => {
|
|
135674
|
+
return "\r" + " ".repeat(index);
|
|
135675
|
+
}),
|
|
135676
|
+
"\r\n": new Array(maxCachedValues).fill(0).map((_, index) => {
|
|
135677
|
+
return "\r\n" + " ".repeat(index);
|
|
135678
|
+
})
|
|
135679
|
+
},
|
|
135680
|
+
" ": {
|
|
135681
|
+
"\n": new Array(maxCachedValues).fill(0).map((_, index) => {
|
|
135682
|
+
return "\n" + " ".repeat(index);
|
|
135683
|
+
}),
|
|
135684
|
+
"\r": new Array(maxCachedValues).fill(0).map((_, index) => {
|
|
135685
|
+
return "\r" + " ".repeat(index);
|
|
135686
|
+
}),
|
|
135687
|
+
"\r\n": new Array(maxCachedValues).fill(0).map((_, index) => {
|
|
135688
|
+
return "\r\n" + " ".repeat(index);
|
|
135689
|
+
})
|
|
135690
|
+
}
|
|
135691
|
+
};
|
|
135692
|
+
supportedEols = ["\n", "\r", "\r\n"];
|
|
135693
|
+
}
|
|
135694
|
+
});
|
|
135695
|
+
|
|
135696
|
+
// ../../node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/format.js
|
|
135661
135697
|
function format2(documentText, range, options) {
|
|
135662
135698
|
let initialIndentLevel;
|
|
135663
135699
|
let formatText;
|
|
@@ -135685,22 +135721,30 @@ function format2(documentText, range, options) {
|
|
|
135685
135721
|
rangeEnd = documentText.length;
|
|
135686
135722
|
}
|
|
135687
135723
|
const eol = getEOL(options, documentText);
|
|
135724
|
+
const eolFastPathSupported = supportedEols.includes(eol);
|
|
135688
135725
|
let numberLineBreaks = 0;
|
|
135689
135726
|
let indentLevel = 0;
|
|
135690
135727
|
let indentValue;
|
|
135691
135728
|
if (options.insertSpaces) {
|
|
135692
|
-
indentValue = repeat(
|
|
135729
|
+
indentValue = cachedSpaces[options.tabSize || 4] ?? repeat(cachedSpaces[1], options.tabSize || 4);
|
|
135693
135730
|
} else {
|
|
135694
135731
|
indentValue = " ";
|
|
135695
135732
|
}
|
|
135733
|
+
const indentType = indentValue === " " ? " " : " ";
|
|
135696
135734
|
let scanner = createScanner(formatText, false);
|
|
135697
135735
|
let hasError = false;
|
|
135698
135736
|
function newLinesAndIndent() {
|
|
135699
135737
|
if (numberLineBreaks > 1) {
|
|
135700
135738
|
return repeat(eol, numberLineBreaks) + repeat(indentValue, initialIndentLevel + indentLevel);
|
|
135701
|
-
}
|
|
135739
|
+
}
|
|
135740
|
+
const amountOfSpaces = indentValue.length * (initialIndentLevel + indentLevel);
|
|
135741
|
+
if (!eolFastPathSupported || amountOfSpaces > cachedBreakLinesWithSpaces[indentType][eol].length) {
|
|
135702
135742
|
return eol + repeat(indentValue, initialIndentLevel + indentLevel);
|
|
135703
135743
|
}
|
|
135744
|
+
if (amountOfSpaces <= 0) {
|
|
135745
|
+
return eol;
|
|
135746
|
+
}
|
|
135747
|
+
return cachedBreakLinesWithSpaces[indentType][eol][amountOfSpaces];
|
|
135704
135748
|
}
|
|
135705
135749
|
function scanNext() {
|
|
135706
135750
|
let token2 = scanner.scan();
|
|
@@ -135728,7 +135772,7 @@ function format2(documentText, range, options) {
|
|
|
135728
135772
|
}
|
|
135729
135773
|
if (firstToken !== 17) {
|
|
135730
135774
|
let firstTokenStart = scanner.getTokenOffset() + formatTextStart;
|
|
135731
|
-
let initialIndent = repeat(indentValue, initialIndentLevel);
|
|
135775
|
+
let initialIndent = indentValue.length * initialIndentLevel < 20 && options.insertSpaces ? cachedSpaces[indentValue.length * initialIndentLevel] : repeat(indentValue, initialIndentLevel);
|
|
135732
135776
|
addEdit(initialIndent, formatTextStart, firstTokenStart);
|
|
135733
135777
|
}
|
|
135734
135778
|
while (firstToken !== 17) {
|
|
@@ -135738,7 +135782,7 @@ function format2(documentText, range, options) {
|
|
|
135738
135782
|
let needsLineBreak = false;
|
|
135739
135783
|
while (numberLineBreaks === 0 && (secondToken === 12 || secondToken === 13)) {
|
|
135740
135784
|
let commentTokenStart = scanner.getTokenOffset() + formatTextStart;
|
|
135741
|
-
addEdit(
|
|
135785
|
+
addEdit(cachedSpaces[1], firstTokenEnd, commentTokenStart);
|
|
135742
135786
|
firstTokenEnd = scanner.getTokenOffset() + scanner.getTokenLength() + formatTextStart;
|
|
135743
135787
|
needsLineBreak = secondToken === 12;
|
|
135744
135788
|
replaceContent = needsLineBreak ? newLinesAndIndent() : "";
|
|
@@ -135752,7 +135796,7 @@ function format2(documentText, range, options) {
|
|
|
135752
135796
|
if (options.keepLines && numberLineBreaks > 0 || !options.keepLines && firstToken !== 1) {
|
|
135753
135797
|
replaceContent = newLinesAndIndent();
|
|
135754
135798
|
} else if (options.keepLines) {
|
|
135755
|
-
replaceContent =
|
|
135799
|
+
replaceContent = cachedSpaces[1];
|
|
135756
135800
|
}
|
|
135757
135801
|
} else if (secondToken === 4) {
|
|
135758
135802
|
if (firstToken !== 3) {
|
|
@@ -135762,7 +135806,7 @@ function format2(documentText, range, options) {
|
|
|
135762
135806
|
if (options.keepLines && numberLineBreaks > 0 || !options.keepLines && firstToken !== 3) {
|
|
135763
135807
|
replaceContent = newLinesAndIndent();
|
|
135764
135808
|
} else if (options.keepLines) {
|
|
135765
|
-
replaceContent =
|
|
135809
|
+
replaceContent = cachedSpaces[1];
|
|
135766
135810
|
}
|
|
135767
135811
|
} else {
|
|
135768
135812
|
switch (firstToken) {
|
|
@@ -135772,14 +135816,14 @@ function format2(documentText, range, options) {
|
|
|
135772
135816
|
if (options.keepLines && numberLineBreaks > 0 || !options.keepLines) {
|
|
135773
135817
|
replaceContent = newLinesAndIndent();
|
|
135774
135818
|
} else {
|
|
135775
|
-
replaceContent =
|
|
135819
|
+
replaceContent = cachedSpaces[1];
|
|
135776
135820
|
}
|
|
135777
135821
|
break;
|
|
135778
135822
|
case 5:
|
|
135779
135823
|
if (options.keepLines && numberLineBreaks > 0 || !options.keepLines) {
|
|
135780
135824
|
replaceContent = newLinesAndIndent();
|
|
135781
135825
|
} else {
|
|
135782
|
-
replaceContent =
|
|
135826
|
+
replaceContent = cachedSpaces[1];
|
|
135783
135827
|
}
|
|
135784
135828
|
break;
|
|
135785
135829
|
case 12:
|
|
@@ -135789,14 +135833,14 @@ function format2(documentText, range, options) {
|
|
|
135789
135833
|
if (numberLineBreaks > 0) {
|
|
135790
135834
|
replaceContent = newLinesAndIndent();
|
|
135791
135835
|
} else if (!needsLineBreak) {
|
|
135792
|
-
replaceContent =
|
|
135836
|
+
replaceContent = cachedSpaces[1];
|
|
135793
135837
|
}
|
|
135794
135838
|
break;
|
|
135795
135839
|
case 6:
|
|
135796
135840
|
if (options.keepLines && numberLineBreaks > 0) {
|
|
135797
135841
|
replaceContent = newLinesAndIndent();
|
|
135798
135842
|
} else if (!needsLineBreak) {
|
|
135799
|
-
replaceContent =
|
|
135843
|
+
replaceContent = cachedSpaces[1];
|
|
135800
135844
|
}
|
|
135801
135845
|
break;
|
|
135802
135846
|
case 10:
|
|
@@ -135816,7 +135860,7 @@ function format2(documentText, range, options) {
|
|
|
135816
135860
|
replaceContent = newLinesAndIndent();
|
|
135817
135861
|
} else {
|
|
135818
135862
|
if ((secondToken === 12 || secondToken === 13) && !needsLineBreak) {
|
|
135819
|
-
replaceContent =
|
|
135863
|
+
replaceContent = cachedSpaces[1];
|
|
135820
135864
|
} else if (secondToken !== 5 && secondToken !== 17) {
|
|
135821
135865
|
hasError = true;
|
|
135822
135866
|
}
|
|
@@ -135856,7 +135900,7 @@ function computeIndentLevel(content, options) {
|
|
|
135856
135900
|
const tabSize = options.tabSize || 4;
|
|
135857
135901
|
while (i < content.length) {
|
|
135858
135902
|
let ch = content.charAt(i);
|
|
135859
|
-
if (ch ===
|
|
135903
|
+
if (ch === cachedSpaces[1]) {
|
|
135860
135904
|
nChars++;
|
|
135861
135905
|
} else if (ch === " ") {
|
|
135862
135906
|
nChars += tabSize;
|
|
@@ -135885,13 +135929,14 @@ function isEOL(text, offset) {
|
|
|
135885
135929
|
return "\r\n".indexOf(text.charAt(offset)) !== -1;
|
|
135886
135930
|
}
|
|
135887
135931
|
var init_format = __esm({
|
|
135888
|
-
"../../node_modules/.pnpm/jsonc-parser@3.
|
|
135932
|
+
"../../node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/format.js"() {
|
|
135889
135933
|
"use strict";
|
|
135890
135934
|
init_scanner();
|
|
135935
|
+
init_string_intern();
|
|
135891
135936
|
}
|
|
135892
135937
|
});
|
|
135893
135938
|
|
|
135894
|
-
// ../../node_modules/.pnpm/jsonc-parser@3.
|
|
135939
|
+
// ../../node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/parser.js
|
|
135895
135940
|
function getLocation(text, position) {
|
|
135896
135941
|
const segments = [];
|
|
135897
135942
|
const earlyReturnException = new Object();
|
|
@@ -136195,19 +136240,39 @@ function findNodeAtOffset(node, offset, includeRightBound = false) {
|
|
|
136195
136240
|
function visit(text, visitor, options = ParseOptions.DEFAULT) {
|
|
136196
136241
|
const _scanner = createScanner(text, false);
|
|
136197
136242
|
const _jsonPath = [];
|
|
136243
|
+
let suppressedCallbacks = 0;
|
|
136198
136244
|
function toNoArgVisit(visitFunction) {
|
|
136199
|
-
return visitFunction ? () => visitFunction(_scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter()) : () => true;
|
|
136200
|
-
}
|
|
136201
|
-
function toNoArgVisitWithPath(visitFunction) {
|
|
136202
|
-
return visitFunction ? () => visitFunction(_scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter(), () => _jsonPath.slice()) : () => true;
|
|
136245
|
+
return visitFunction ? () => suppressedCallbacks === 0 && visitFunction(_scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter()) : () => true;
|
|
136203
136246
|
}
|
|
136204
136247
|
function toOneArgVisit(visitFunction) {
|
|
136205
|
-
return visitFunction ? (arg) => visitFunction(arg, _scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter()) : () => true;
|
|
136248
|
+
return visitFunction ? (arg) => suppressedCallbacks === 0 && visitFunction(arg, _scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter()) : () => true;
|
|
136206
136249
|
}
|
|
136207
136250
|
function toOneArgVisitWithPath(visitFunction) {
|
|
136208
|
-
return visitFunction ? (arg) => visitFunction(arg, _scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter(), () => _jsonPath.slice()) : () => true;
|
|
136251
|
+
return visitFunction ? (arg) => suppressedCallbacks === 0 && visitFunction(arg, _scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter(), () => _jsonPath.slice()) : () => true;
|
|
136252
|
+
}
|
|
136253
|
+
function toBeginVisit(visitFunction) {
|
|
136254
|
+
return visitFunction ? () => {
|
|
136255
|
+
if (suppressedCallbacks > 0) {
|
|
136256
|
+
suppressedCallbacks++;
|
|
136257
|
+
} else {
|
|
136258
|
+
let cbReturn = visitFunction(_scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter(), () => _jsonPath.slice());
|
|
136259
|
+
if (cbReturn === false) {
|
|
136260
|
+
suppressedCallbacks = 1;
|
|
136261
|
+
}
|
|
136262
|
+
}
|
|
136263
|
+
} : () => true;
|
|
136209
136264
|
}
|
|
136210
|
-
|
|
136265
|
+
function toEndVisit(visitFunction) {
|
|
136266
|
+
return visitFunction ? () => {
|
|
136267
|
+
if (suppressedCallbacks > 0) {
|
|
136268
|
+
suppressedCallbacks--;
|
|
136269
|
+
}
|
|
136270
|
+
if (suppressedCallbacks === 0) {
|
|
136271
|
+
visitFunction(_scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter());
|
|
136272
|
+
}
|
|
136273
|
+
} : () => true;
|
|
136274
|
+
}
|
|
136275
|
+
const onObjectBegin = toBeginVisit(visitor.onObjectBegin), onObjectProperty = toOneArgVisitWithPath(visitor.onObjectProperty), onObjectEnd = toEndVisit(visitor.onObjectEnd), onArrayBegin = toBeginVisit(visitor.onArrayBegin), onArrayEnd = toEndVisit(visitor.onArrayEnd), onLiteralValue = toOneArgVisitWithPath(visitor.onLiteralValue), onSeparator = toOneArgVisit(visitor.onSeparator), onComment = toNoArgVisit(visitor.onComment), onError = toOneArgVisit(visitor.onError);
|
|
136211
136276
|
const disallowComments = options && options.disallowComments;
|
|
136212
136277
|
const allowTrailingComma = options && options.allowTrailingComma;
|
|
136213
136278
|
function scanNext() {
|
|
@@ -136520,7 +136585,7 @@ function getNodeType(value) {
|
|
|
136520
136585
|
}
|
|
136521
136586
|
var ParseOptions;
|
|
136522
136587
|
var init_parser = __esm({
|
|
136523
|
-
"../../node_modules/.pnpm/jsonc-parser@3.
|
|
136588
|
+
"../../node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/parser.js"() {
|
|
136524
136589
|
"use strict";
|
|
136525
136590
|
init_scanner();
|
|
136526
136591
|
(function(ParseOptions2) {
|
|
@@ -136531,7 +136596,7 @@ var init_parser = __esm({
|
|
|
136531
136596
|
}
|
|
136532
136597
|
});
|
|
136533
136598
|
|
|
136534
|
-
// ../../node_modules/.pnpm/jsonc-parser@3.
|
|
136599
|
+
// ../../node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/edit.js
|
|
136535
136600
|
function setProperty(text, originalPath, value, options) {
|
|
136536
136601
|
const path3 = originalPath.slice();
|
|
136537
136602
|
const errors = [];
|
|
@@ -136675,14 +136740,14 @@ function applyEdit(text, edit) {
|
|
|
136675
136740
|
return text.substring(0, edit.offset) + edit.content + text.substring(edit.offset + edit.length);
|
|
136676
136741
|
}
|
|
136677
136742
|
var init_edit = __esm({
|
|
136678
|
-
"../../node_modules/.pnpm/jsonc-parser@3.
|
|
136743
|
+
"../../node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/edit.js"() {
|
|
136679
136744
|
"use strict";
|
|
136680
136745
|
init_format();
|
|
136681
136746
|
init_parser();
|
|
136682
136747
|
}
|
|
136683
136748
|
});
|
|
136684
136749
|
|
|
136685
|
-
// ../../node_modules/.pnpm/jsonc-parser@3.
|
|
136750
|
+
// ../../node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/main.js
|
|
136686
136751
|
var main_exports = {};
|
|
136687
136752
|
__export(main_exports, {
|
|
136688
136753
|
ParseErrorCode: () => ParseErrorCode,
|
|
@@ -136768,7 +136833,7 @@ function applyEdits(text, edits) {
|
|
|
136768
136833
|
}
|
|
136769
136834
|
var createScanner2, ScanError, SyntaxKind, getLocation2, parse3, parseTree2, findNodeAtLocation2, findNodeAtOffset2, getNodePath2, getNodeValue2, visit2, stripComments2, ParseErrorCode;
|
|
136770
136835
|
var init_main = __esm({
|
|
136771
|
-
"../../node_modules/.pnpm/jsonc-parser@3.
|
|
136836
|
+
"../../node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/main.js"() {
|
|
136772
136837
|
"use strict";
|
|
136773
136838
|
init_format();
|
|
136774
136839
|
init_edit();
|
|
@@ -163775,7 +163840,7 @@ function shouldStoreSystemInfo(system) {
|
|
|
163775
163840
|
var import_telemetry = __toESM(require_dist15());
|
|
163776
163841
|
|
|
163777
163842
|
// package.json
|
|
163778
|
-
var version = "0.3.
|
|
163843
|
+
var version = "0.3.6";
|
|
163779
163844
|
|
|
163780
163845
|
// src/utils/telemetryHelper.ts
|
|
163781
163846
|
var import_feature_toggle = __toESM(require_dist16());
|
|
@@ -164095,18 +164160,23 @@ function validateSystemInfo(input) {
|
|
|
164095
164160
|
}
|
|
164096
164161
|
return true;
|
|
164097
164162
|
}
|
|
164098
|
-
async function validateSystemName(newName, currentName) {
|
|
164163
|
+
async function validateSystemName(newName, currentName, panelViewType) {
|
|
164099
164164
|
const systemService = await getBackendSystemService();
|
|
164100
164165
|
const allSystems = await systemService.getAll({
|
|
164101
164166
|
includeSensitiveData: false,
|
|
164102
164167
|
backendSystemFilter: { connectionType: ["abap_catalog", "odata_service"] }
|
|
164103
164168
|
});
|
|
164104
164169
|
const newSystemName = newName.trim();
|
|
164105
|
-
const nameExists = allSystems.some(
|
|
164106
|
-
(sys) => sys.name.toLowerCase() === newSystemName.toLowerCase() && sys.name !== currentName
|
|
164107
|
-
);
|
|
164170
|
+
const nameExists = allSystems.some((sys) => sys.name.toLowerCase() === newSystemName.toLowerCase());
|
|
164108
164171
|
if (nameExists) {
|
|
164109
|
-
|
|
164172
|
+
if (panelViewType === 0 /* Create */ || panelViewType === 2 /* Import */) {
|
|
164173
|
+
throw t2("validation.connectionNameExists");
|
|
164174
|
+
} else if (panelViewType === 1 /* View */) {
|
|
164175
|
+
const currentSystemName = currentName?.trim().toLowerCase();
|
|
164176
|
+
if (currentSystemName !== newSystemName) {
|
|
164177
|
+
throw t2("validation.connectionNameExists");
|
|
164178
|
+
}
|
|
164179
|
+
}
|
|
164110
164180
|
}
|
|
164111
164181
|
return true;
|
|
164112
164182
|
}
|
|
@@ -164391,7 +164461,7 @@ async function updateSystem(context4, action) {
|
|
|
164391
164461
|
...systemInfo && { systemInfo }
|
|
164392
164462
|
};
|
|
164393
164463
|
try {
|
|
164394
|
-
await validateSystemName(backendSystem.name, context4.backendSystem?.name);
|
|
164464
|
+
await validateSystemName(backendSystem.name, context4.backendSystem?.name, context4.panelViewType);
|
|
164395
164465
|
validateSystemUrl(backendSystem.url);
|
|
164396
164466
|
const newPanelMsg = await updateHandler(context4, backendSystem, systemExistsInStore);
|
|
164397
164467
|
await saveSystem(backendSystem, systemExistsInStore, context4.panelViewType);
|
|
@@ -164400,7 +164470,13 @@ async function updateSystem(context4, action) {
|
|
|
164400
164470
|
}
|
|
164401
164471
|
} catch (error) {
|
|
164402
164472
|
const message = error instanceof Error ? error.message : String(error);
|
|
164403
|
-
await postSavingError(
|
|
164473
|
+
await postSavingError(
|
|
164474
|
+
message,
|
|
164475
|
+
context4.postMessage,
|
|
164476
|
+
systemExistsInStore,
|
|
164477
|
+
backendSystem.systemType,
|
|
164478
|
+
context4.panelViewType
|
|
164479
|
+
);
|
|
164404
164480
|
}
|
|
164405
164481
|
}
|
|
164406
164482
|
async function fetchSystemInfo(context4, backendSystemPayload) {
|
|
@@ -164449,8 +164525,10 @@ async function updateHandler(context4, newSystem, systemExistsInStore) {
|
|
|
164449
164525
|
}
|
|
164450
164526
|
return newPanelMsg;
|
|
164451
164527
|
}
|
|
164452
|
-
async function postSavingError(errorMsg, postMessage, systemExistsInStore, systemType = "unknown") {
|
|
164453
|
-
const message = t2(
|
|
164528
|
+
async function postSavingError(errorMsg, postMessage, systemExistsInStore, systemType = "unknown", panelViewType) {
|
|
164529
|
+
const message = t2(panelViewType === 1 /* View */ ? "error.updateFailure" : "error.creationFailure", {
|
|
164530
|
+
error: errorMsg
|
|
164531
|
+
});
|
|
164454
164532
|
postMessage(
|
|
164455
164533
|
updateSystemStatus({
|
|
164456
164534
|
message,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sap-ux-sap-systems-ext",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"displayName": "Connection Manager for SAP Systems",
|
|
5
5
|
"description": "Enables you to store connection information for remote SAP systems.",
|
|
6
6
|
"main": "./dist/extension.js",
|
|
@@ -38,21 +38,21 @@
|
|
|
38
38
|
"cross-env": "7.0.3",
|
|
39
39
|
"fast-glob": "3.3.1",
|
|
40
40
|
"i18next": "25.8.12",
|
|
41
|
-
"jsonc-parser": "3.
|
|
41
|
+
"jsonc-parser": "3.3.1",
|
|
42
42
|
"normalize-path": "3.0.0",
|
|
43
43
|
"npm-run-all2": "8.0.4",
|
|
44
44
|
"os-name": "4.0.1",
|
|
45
45
|
"vscode-uri": "3.1.0",
|
|
46
46
|
"@vscode/vsce": "3.6.0",
|
|
47
|
-
"@sap-ux/axios-extension": "1.25.
|
|
47
|
+
"@sap-ux/axios-extension": "1.25.16",
|
|
48
48
|
"@sap-ux/guided-answers-helper": "0.4.2",
|
|
49
49
|
"@sap-ux/feature-toggle": "0.3.7",
|
|
50
|
-
"@sap-ux/ui-components": "1.27.
|
|
50
|
+
"@sap-ux/ui-components": "1.27.7",
|
|
51
51
|
"@sap-ux/logger": "0.8.1",
|
|
52
52
|
"@sap-ux/store": "1.5.7",
|
|
53
53
|
"@sap-ux/sap-systems-ext-types": "0.0.4",
|
|
54
54
|
"@sap-ux/sap-systems-ext-webapp": "0.1.2",
|
|
55
|
-
"@sap-ux/telemetry": "0.6.
|
|
55
|
+
"@sap-ux/telemetry": "0.6.80"
|
|
56
56
|
},
|
|
57
57
|
"contributes": {
|
|
58
58
|
"viewsContainers": {
|