From c2a7f7c5acd308e92d5edf249fbdd72f110f24e2 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 20 Feb 2024 14:47:42 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20disable=20off-screen=20rendering?= =?UTF-8?q?=20in=20intellij=20webview=20(fixes=20korean=20input)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../toolWindow/ContinuePluginToolWindowFactory.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinuePluginToolWindowFactory.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinuePluginToolWindowFactory.kt index 681c14bb7..e13c74698 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinuePluginToolWindowFactory.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinuePluginToolWindowFactory.kt @@ -76,11 +76,11 @@ class ContinuePluginToolWindowFactory : ToolWindowFactory, DumbAware { init { System.setProperty("ide.browser.jcef.jsQueryPoolSize", JS_QUERY_POOL_SIZE) -// System.setProperty("ide.browser.jcef.osr.enabled", "true") + System.setProperty("ide.browser.jcef.osr.enabled", "false") } val webView: JBCefBrowser by lazy { - val browser = JBCefBrowser() + val browser = JBCefBrowser.createBuilder().setOffScreenRendering(false).build() browser.jbCefClient.setProperty( JBCefClient.Properties.JS_QUERY_POOL_SIZE, JS_QUERY_POOL_SIZE @@ -88,6 +88,7 @@ class ContinuePluginToolWindowFactory : ToolWindowFactory, DumbAware { registerAppSchemeHandler() browser.loadURL("http://continue/index.html") +// browser.loadHTML("") // browser.loadURL("http://localhost:5173/index.html") Disposer.register(project, browser)