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

@openctx/vscode-lib controller doesn't work in web worker context #169

Open
vovakulikov opened this issue Jul 5, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@vovakulikov
Copy link

In some consumers (like Cody Web) it should be possible to run/create openctx controller within
web worker, at the moment since init logic here https://github.com/sourcegraph/openctx/blob/main/client/vscode-lib/src/global.ts uses global. statement it breaks initialisation for Cody Web.

As a temporal workaround, I added self.global = {} to avoid this problem in Cody Web, but eventually, I think a fix should be done here, maybe instead of global.openctx we could share vscode API through singleton

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant