Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Eliminate Uncaught TypeError in dev tools #4666

Merged
merged 1 commit into from
Mar 17, 2025

Conversation

lkk214
Copy link
Contributor

@lkk214 lkk214 commented Mar 15, 2025

Description

Eliminate the Uncaught TypeError: window.cefQuery_xxx is not a function error that keeps appearing in the JS debug console.

Screenshots

err0315

Copy link

netlify bot commented Mar 15, 2025

Deploy Preview for continuedev ready!

Name Link
🔨 Latest commit d342825
🔍 Latest deploy log https://app.netlify.com/sites/continuedev/deploys/67d5692677164e00088dfd43
😎 Deploy Preview https://deploy-preview-4666--continuedev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@sestinj sestinj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks great @lkk214 — can we also keep around the dev tools option by adding it to the apply?

@sestinj sestinj self-assigned this Mar 16, 2025
@lkk214
Copy link
Contributor Author

lkk214 commented Mar 17, 2025

@sestinj JS_QUERY_POOL_SIZE? It is just a configuration parameter in jbcef, and maybe it can be configured in the tools settings in JetBrains, but I don't think users will care about it.

@@ -43,11 +43,6 @@ class ContinuePluginToolWindowFactory : ToolWindowFactory, DumbAware {
class ContinuePluginWindow(project: Project) {
private val defaultGUIUrl = "http://continue/index.html"

init {
System.setProperty("ide.browser.jcef.jsQueryPoolSize", JS_QUERY_POOL_SIZE)
System.setProperty("ide.browser.jcef.contextMenu.devTools.enabled", "true")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the line I'm referencing. It allows you to right click and "Open Dev Tools" which is very useful for debugging

@lkk214
Copy link
Contributor Author

lkk214 commented Mar 17, 2025

@sestinj Oh, actually it has been an invalid configuration, it will only take effect when jcef is opened when starting the plugin, even if we don't configure it, we can still open it by right clicking and "Open Dev Tools".
devtools

@sestinj sestinj merged commit 8a688cd into continuedev:main Mar 17, 2025
30 checks passed
jimmyek85 pushed a commit to jimmyek85/continue that referenced this pull request Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants