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

VS Code does not focus on the right editor #274

Open
fregante opened this issue Mar 21, 2023 · 0 comments
Open

VS Code does not focus on the right editor #274

fregante opened this issue Mar 21, 2023 · 0 comments

Comments

@fregante
Copy link
Owner

fregante commented Mar 21, 2023

GhostText just created a tab in a minimized workspace and then brought the whole app to focus (with the AppleScript command)

There must be a better way than this:

https://github.com/fregante/GhostText-for-VSCode/blob/b24b0bb98117302685906772ecfbd0a7aea45f6a/source/extension.ts#L42-L46

Last attempt:

This is because GhostText runs once per workspace, so the minimized one was the one that was running the server:

Possible solution:

  • Use vscode.workspace.workspaceFolders to find the front-most workspace maybe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant