vscode-json-languageservice 4.2.0-next.3 → 4.2.0
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.
|
@@ -337,7 +337,7 @@ var JSONSchemaService = /** @class */ (function () {
|
|
|
337
337
|
};
|
|
338
338
|
var mergeRef = function (target, sourceRoot, sourceHandle, refSegment) {
|
|
339
339
|
var section;
|
|
340
|
-
if (refSegment === undefined) {
|
|
340
|
+
if (refSegment === undefined || refSegment.length === 0) {
|
|
341
341
|
section = sourceRoot;
|
|
342
342
|
}
|
|
343
343
|
else if (refSegment.charAt(0) === '/') {
|
|
@@ -349,7 +349,7 @@
|
|
|
349
349
|
};
|
|
350
350
|
var mergeRef = function (target, sourceRoot, sourceHandle, refSegment) {
|
|
351
351
|
var section;
|
|
352
|
-
if (refSegment === undefined) {
|
|
352
|
+
if (refSegment === undefined || refSegment.length === 0) {
|
|
353
353
|
section = sourceRoot;
|
|
354
354
|
}
|
|
355
355
|
else if (refSegment.charAt(0) === '/') {
|