fregante/GhostText

VS Code does not focus on the right editor

オープン

#274 opened on 2023/03/21

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (133 件のフォーク)github user discovery
bughelp wantedvscode

Repository metrics

Stars
 (3,611 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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

コントリビューターガイド