You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
errors.push(toDiagnostic(l10n.t('Problem reading content from \'{0}\': UTF-8 with BOM detected, only UTF 8 is allowed.',toDisplayString(url)),ErrorCode.SchemaResolveError));
412
+
errors.push(toDiagnostic(l10n.t('Problem reading content from \'{0}\': UTF-8 with BOM detected, only UTF 8 is allowed.',toDisplayString(url)),ErrorCode.SchemaResolveError,url));
408
413
content=content.trimStart();
409
414
}
410
415
411
416
letschemaContent: JSONSchema={};
412
417
constjsonErrors: Json.ParseError[]=[];
413
418
schemaContent=Json.parse(content,jsonErrors);
414
419
if(jsonErrors.length){
415
-
errors.push(toDiagnostic(l10n.t('Unable to parse content from \'{0}\': Parse error at offset {1}.',toDisplayString(url),jsonErrors[0].offset),ErrorCode.SchemaResolveError));
420
+
errors.push(toDiagnostic(l10n.t('Unable to parse content from \'{0}\': Parse error at offset {1}.',toDisplayString(url),jsonErrors[0].offset),ErrorCode.SchemaResolveError,url));
416
421
}
417
422
returnnewUnresolvedSchema(schemaContent,errors);
418
423
},
@@ -435,7 +440,7 @@ export class JSONSchemaService implements IJSONSchemaService {
435
440
errorCode+=code;
436
441
}
437
442
consterrorMessage=l10n.t('Unable to load schema from \'{0}\': {1}.',toDisplayString(url),message);
assert.deepStrictEqual(resolvedSchema?.errors,[{message: "Problems loading reference 'http://myschemastore/myschemafoo': Unable to load schema from 'http://myschemastore/myschemafoo': Resource not found.",code: ErrorCode.SchemaResolveError}]);
1082
+
constmessage="Unable to load schema from 'http://myschemastore/myschemafoo': Resource not found.";
0 commit comments