     return new Promise((resolve, _) => {
                    pending_mapping_requests[url] = resolve;
                    console.log(url)
                })
            },
            "native",
            false // ${experimental ? "true" : "false"}
        );

        window.addEventListener('slint.lspToPreview', async (event) => {
            preview_connector.process_lsp_to_preview_message(
                event.detail.message,
            );
        });

        preview_connector.show_ui().then(() => 