fregante / fregante/GhostText

VS Code does not focus on the right editor

Open
#274 0 comments 0 reactions 0 assignees View on GitHub
bug help wanted vscode
Dominant language
JavaScript
Stars
3.6k
Forks
133
PR merge metrics
No merged PRs in 30d

Description

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:

- https://github.com/fregante/GhostText-for-VSCode/pull/6

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

- https://github.com/fregante/GhostText/issues/275

Possible solution:

- Use `vscode.workspace.workspaceFolders` to find the front-most workspace maybe

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.