This works as expected:
<!-- ok with: default from "./diagnostics" -->
<!-- ko if: true -->
hello
<!-- /ko -->
<!-- /ok -->
But when the virtual element is placed outside the "ok with" directive, it adds an diagnostic.
<!-- ok with: default from "./diagnostics" -->
<!-- /ok -->
<!-- ko if: true -->
hello
<!-- /ko -->