extensions/internals: Port to ESM

We got rid of all uses of extension utils code in the gnome-shell
process itself, and everything that is now using it - including
extensions - is already loaded as module.

We can therefore quickly move the file to ESM, which will help
a bit with upcoming changes.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2837>
This commit is contained in:
Florian Müllner
2023-07-09 02:13:17 +02:00
parent d3f662fbf2
commit 55cf8cf4bb
3 changed files with 13 additions and 15 deletions

View File

@ -5,9 +5,9 @@ import Shew from 'gi://Shew';
import {ExtensionPrefsDialog} from './extensionPrefsDialog.js';
import {ServiceImplementation} from './dbusService.js';
import {setExtensionManager} from './extensions/sharedInternals.js';
const {deserializeExtension} = imports.misc.extensionUtils;
const {setExtensionManager} = imports.extensions.sharedInternals;
const {loadInterfaceXML} = imports.misc.dbusUtils;
const ExtensionsIface = loadInterfaceXML('org.gnome.Shell.Extensions');