• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

redhat-developer / yaml-language-server / 21992801998
85%
master: 80%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 13 Feb 2026 03:41PM UTC
Jobs 1
Files 68
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Feb 2026 03:39PM UTC coverage: 84.996% (+0.3%) from 84.671%
21992801998

push

github

web-flow
fix: pass loadSchema callback to pickSchemaDialect (#1176)

* fix: pass loadSchema callback to pickSchemaDialect

pickSchemaDialect is a module-level function but used `this.loadSchema(s)`
on line 1338, where `this` is undefined (strict mode). This caused a
TypeError when resolving schemas with custom (non-standard) $schema URIs
that require loading the meta-schema to infer the dialect.

The fix adds an optional `loadSchema` callback parameter. The caller in
`resolveSchemaContent` (a class method with proper `this` context) passes
`this.loadSchema.bind(this)` via a closure variable.

When `loadSchema` is not provided, the function returns `undefined` for
unknown dialects instead of crashing.

* Fix prettier formatting error

Signed-off-by: David Thompson <davthomp@redhat.com>

* Add test suite that fails without the fix

- Add an await for a promise that was left dangling in order to properly
propagate the error.
- Remove other test suite; the test was passing with and without the fix.

Signed-off-by: David Thompson <davthomp@redhat.com>

* Increase timeout

It's timing out on macOS

Signed-off-by: David Thompson <davthomp@redhat.com>

---------

Signed-off-by: David Thompson <davthomp@redhat.com>
Co-authored-by: Holger Bartnick <holger.bartnick@data-experts.de>
Co-authored-by: David Thompson <davthomp@redhat.com>

2907 of 3632 branches covered (80.04%)

Branch coverage included in aggregate %.

5 of 5 new or added lines in 1 file covered. (100.0%)

4299 of 4846 relevant lines covered (88.71%)

258891.01 hits per line

Jobs
ID Job ID Ran Files Coverage
1 21992801998.1 13 Feb 2026 03:41PM UTC 68
85.0
GitHub Action Run
Source Files on build 21992801998
  • Tree
  • List 68
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #21992801998
  • 49c1d5a4 on github
  • Prev Build on main (#21883189421)
  • Next Build on main (#22004494546)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc