Dom: remove load{ModuleDependency,Builtins} from Environment


We don't need them in qmlls, except for the (broken) module import
completion that can only suggest already imported modules and needs to
be rewritten anyway (see QTBUG-126766). Remove it and its usages.

We should (re-)use QQmlJSImporter for future code instead (accessible
through the QQmlJSScopes attached to the DOM nodes).

QEXPECT_FAIL the tests for the module import completion tests that only
test whether QML Modules already imported in a file are suggested via
auto-completion.

Task-number: QTBUG-150842
Change-Id: I8b823ab3527ef233fd8ac715ca92df6bbf6e9324
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
commitc3bbc361d60444d81bb20983befa4591bf230d0f
parent300af2f433259d7c58589c911a5900906b92eeea
authorSami Shalayel <sami.shalayel@qt.io>
committerSami Shalayel <sami.shalayel@qt.io>
commit timeThu, 8 Oct 2026 07:11:37 +0000